zzzeek / sqla_issue_test

1 stars 0 forks source link

session.merge() doesn't work for objects that are mapped against multiple tables #236

Closed zzzeek closed 6 years ago

zzzeek commented 18 years ago

Originally reported by: Anonymous


If you have an object that is mapped against more than one table, code like

  pickledObj = pickle.dumps(obj)
  unpickledObj = pickle.loads(pickledObj)
  obj2 = session.merge(unpickledObj)

fails with an error because too many arguments are being passed to the session.get() function.


zzzeek commented 18 years ago

Original comment by Michael Bayer (Bitbucket: zzzeek, GitHub: zzzeek):


patched this in changeset:1702

zzzeek commented 18 years ago

Original comment by Anonymous:


session.merge() test case

zzzeek commented 18 years ago

Original comment by Anonymous:


Patch to fix the problem