mirror of
https://github.com/sqlalchemy/sqlalchemy.git
synced 2026-05-13 04:07:20 -04:00
- Squashed 2.4 generators.
This commit is contained in:
@@ -594,7 +594,7 @@ class EagerLoader(AbstractRelationLoader):
|
||||
def create_row_processor(self, selectcontext, mapper, row):
|
||||
|
||||
row_decorator = self._create_row_decorator(selectcontext, row, selectcontext.path)
|
||||
pathstr = ','.join(str(x) for x in selectcontext.path)
|
||||
pathstr = ','.join([str(x) for x in selectcontext.path])
|
||||
if row_decorator is not None:
|
||||
def execute(instance, row, isnew, **flags):
|
||||
decorated_row = row_decorator(row)
|
||||
|
||||
@@ -418,7 +418,9 @@ class ExecutionContextWrapper(object):
|
||||
) \
|
||||
and \
|
||||
( (params is None) or (params == parameters)
|
||||
or params == [dict((k.strip('_'), v) for (k, v) in p.items())for p in parameters]
|
||||
or params == [dict([(k.strip('_'), v)
|
||||
for (k, v) in p.items()])
|
||||
for p in parameters]
|
||||
)
|
||||
testdata.unittest.assert_(equivalent,
|
||||
"Testing for query '%s' params %s, received '%s' with params %s" % (query, repr(params), statement, repr(parameters)))
|
||||
|
||||
Reference in New Issue
Block a user