- fixed the close() method on Transaction when using strategy='threadlocal'
+ - fix to compiled bind parameters to not mistakenly populate None
+ [ticket:853]
+
- orm
- eager loading with LIMIT/OFFSET applied no longer adds the primary
table joined to a limited subquery of itself; the eager loads now
if params:
pd = {}
- for key, bindparam in self.binds.iteritems():
- name = self.bind_names[bindparam]
- pd[name] = params.get(key, bindparam.value)
+ for bindparam, name in self.bind_names.iteritems():
+ for paramname in (bindparam.key, bindparam.shortname, name):
+ if paramname in params:
+ pd[name] = params[paramname]
+ break
+ else:
+ pd[name] = bindparam.value
return pd
else:
return dict([(self.bind_names[bindparam], bindparam.value) for bindparam in self.bind_names])