the test object you are loading in the update function is local to
the update function itself. when the function completes, test
falls out of scope and is removed from the session (since it is weakly
referenced in the session).
a change needs to be made to session whereby dirty objects dont get
Michael Bayer ha scritto:
the test object you are loading in the update function is local to
the update function itself. when the function completes, test
falls out of scope and is removed from the session (since it is weakly
referenced in the session).
a change needs to be made to
cant reproduce. heres a test case of the above which passes:
from sqlalchemy import *
meta = BoundMetaData('sqlite://', echo=True)
tests = Table('tests',meta,
Column('id', Integer, primary_key=True),
Column('foo', String(30))
)
tests_state = Table('tests_state',meta,
Column('id',
youre really looking to have an association object pattern here.
I thought you might recommend that. My problem last time I tried an
association object was that in the following situation:
item table
keyword table
itemkeyword table (and association object)
I couldn't get the keywords to eager
the eager load should be able to go through the association object
down to the endpoint Keyword objects
Thanks -- that does work.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
sqlalchemy group.
To post to this