]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Queries now __str__ as their statement
authorJason Kirtland <jek@discorporate.us>
Sat, 21 Jul 2007 20:03:18 +0000 (20:03 +0000)
committerJason Kirtland <jek@discorporate.us>
Sat, 21 Jul 2007 20:03:18 +0000 (20:03 +0000)
lib/sqlalchemy/orm/query.py

index 6a9ddc57ac6fe337c84460d07415c98b3b03b9c8..63620dbdd6fa59edd5e1c81ead8b6645c15e1a0f 100644 (file)
@@ -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):