From: Mike Bayer Date: Fri, 18 Aug 2006 21:33:11 +0000 (+0000) Subject: added a compile check to instances() X-Git-Tag: rel_0_2_8~42 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa4fc1f4d55f970a1315c0df32979f8daee3eb73;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git added a compile check to instances() --- diff --git a/lib/sqlalchemy/orm/mapper.py b/lib/sqlalchemy/orm/mapper.py index 2347da2ba7..5fed121888 100644 --- a/lib/sqlalchemy/orm/mapper.py +++ b/lib/sqlalchemy/orm/mapper.py @@ -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)