summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/engine
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2016-02-17 13:31:29 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2016-02-17 13:31:29 -0500
commit591e0cf08a798fb16e0ee9b56df5c3141aa48959 (patch)
treeff89657eba4af89f2c8b1b832e56adb839d480b7 /lib/sqlalchemy/engine
parenta99a32d3d1669e1a66776b7e168119656e6aed02 (diff)
downloadsqlalchemy-591e0cf08a798fb16e0ee9b56df5c3141aa48959.tar.gz
- All string formatting of bound parameter sets and result rows for
logging, exception, and ``repr()`` purposes now truncate very large scalar values within each collection, including an "N characters truncated" notation, similar to how the display for large multiple-parameter sets are themselves truncated. fixes #2837
Diffstat (limited to 'lib/sqlalchemy/engine')
-rw-r--r--lib/sqlalchemy/engine/result.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/sqlalchemy/engine/result.py b/lib/sqlalchemy/engine/result.py
index 3305c4ce5..c069fcedf 100644
--- a/lib/sqlalchemy/engine/result.py
+++ b/lib/sqlalchemy/engine/result.py
@@ -10,7 +10,7 @@ and :class:`.RowProxy."""
from .. import exc, util
-from ..sql import expression, sqltypes
+from ..sql import expression, sqltypes, util as sql_util
import collections
import operator
@@ -153,7 +153,7 @@ class RowProxy(BaseRowProxy):
return self._op(other, operator.ne)
def __repr__(self):
- return repr(tuple(self))
+ return repr(sql_util._repr_row(self))
def has_key(self, key):
"""Return True if this RowProxy contains the given key."""
@@ -1080,7 +1080,7 @@ class ResultProxy(object):
log = self.context.engine.logger.debug
l = []
for row in rows:
- log("Row %r", row)
+ log("Row %r", sql_util._repr_row(row))
l.append(process_row(metadata, row, processors, keymap))
return l
else: