]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
added a compile check to instances()
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 18 Aug 2006 21:33:11 +0000 (21:33 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 18 Aug 2006 21:33:11 +0000 (21:33 +0000)
lib/sqlalchemy/orm/mapper.py

index 2347da2ba77822a834d91b5eda14b9e9ab34144d..5fed12188835999f51a7af53cae87e109e76aaa8 100644 (file)
@@ -603,6 +603,7 @@ class Mapper(object):
     def instances(self, cursor, session, *mappers, **kwargs):
         """given a cursor (ResultProxy) from an SQLEngine, returns a list of object instances
         corresponding to the rows in the cursor."""
+        self.compile()
         limit = kwargs.get('limit', None)
         offset = kwargs.get('offset', None)
         populate_existing = kwargs.get('populate_existing', False)