From: Jason Kirtland Date: Sat, 21 Jul 2007 20:03:18 +0000 (+0000) Subject: Queries now __str__ as their statement X-Git-Tag: rel_0_4_6~56 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c85e35e3dcd2dd0d9fc6f70f06c8ba9c5101b6db;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Queries now __str__ as their statement --- diff --git a/lib/sqlalchemy/orm/query.py b/lib/sqlalchemy/orm/query.py index 6a9ddc57ac..63620dbdd6 100644 --- a/lib/sqlalchemy/orm/query.py +++ b/lib/sqlalchemy/orm/query.py @@ -870,6 +870,9 @@ class Query(object): def __log_debug(self, msg): self.logger.debug(msg) + def __str__(self): + return str(self.compile()) + # DEPRECATED LAND ! def list(self):