- changed milestone to 0.7.4
query error against tuple object
Issue #2297
resolved
# HG changeset patch
# User Christoph Zwerschke <cito@online.de>
# Date 1318438429 -7200
# Node ID 39542f657972164a1f700d7eafc99474d05d9350
# Parent f07ffb4739734599e0112bbf7c379e80687f8899
Fix broken error message if a tuple instance is passed as column.
diff -r f07ffb4739734599e0112bbf7c379e80687f8899 -r 39542f657972164a1f700d7eafc99474d05d9350 lib/sqlalchemy/orm/query.py
--- a/lib/sqlalchemy/orm/query.py Tue Oct 11 14:15:09 2011 -0400
+++ b/lib/sqlalchemy/orm/query.py Wed Oct 12 18:53:49 2011 +0200
@@ -3033,7 +3033,7 @@
if not isinstance(column, sql.ColumnElement):
raise sa_exc.InvalidRequestError(
"SQL expression, column, or mapped entity "
- "expected - got '%r'" % column
+ "expected - got '%r'" % (column,)
)
# If the Column is unnamed, give it a
Comments (4)
-
reporter -
reporter - marked as critical
-
reporter - changed status to resolved
-
reporter - removed milestone
Removing milestone: 0.7.4 (automated comment)
- Log in to comment
backport to 0.6.9 as well