diff options
| author | Philip Jenvey <pjenvey@underboss.org> | 2012-01-23 21:40:09 -0800 |
|---|---|---|
| committer | Philip Jenvey <pjenvey@underboss.org> | 2012-01-23 21:40:09 -0800 |
| commit | 37628c2468d88f3d3ad67c0495897786df1cacb6 (patch) | |
| tree | 231b3b4bf04e0f5fd0d70e5066bcb64b7506b30c /lib/sqlalchemy/cextension/resultproxy.c | |
| parent | f02433d7aafe1eba9c4f90863d1d4de6673ab1db (diff) | |
| download | sqlalchemy-37628c2468d88f3d3ad67c0495897786df1cacb6.tar.gz | |
o null check PyObject_Repr results
o limit size of strings passed to PyErr_Format
Diffstat (limited to 'lib/sqlalchemy/cextension/resultproxy.c')
| -rw-r--r-- | lib/sqlalchemy/cextension/resultproxy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/cextension/resultproxy.c b/lib/sqlalchemy/cextension/resultproxy.c index cfc0e3530..64b6855fa 100644 --- a/lib/sqlalchemy/cextension/resultproxy.c +++ b/lib/sqlalchemy/cextension/resultproxy.c @@ -298,7 +298,7 @@ BaseRowProxy_subscript(BaseRowProxy *self, PyObject *key) return NULL; PyErr_Format(exception, - "Ambiguous column name '%s' in result set! " + "Ambiguous column name '%.200s' in result set! " "try 'use_labels' option on select statement.", cstr_key); return NULL; } |
