for the
database connection to work again.
How is auto-reconnect suppposed to work? Is there any connection
parameter to alter for instance?
Thanks,
Hong Yuan
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
PersonAddress(a2))
session.save(p1)
session.save(p2)
session.flush()
persons =
session.query(Person).join('addresses').select(address.c.street.op('like')
('Street%'))
print len(persons)
Best Regards
Hong Yuan
--~--~-~--~~~---~--~~
Yo
and. With eager loading
turned on, the query has 2 joins and 2 left joins. Though a bit
complex, I guess it is actually exactly what is needed.
Best Regards
Hong Yuan
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
and then again in
the JOIN clause. This doesn't seem to be the right select statement.
Is this a bug? If no, how should I structure my code to eliminate this
duplication? If yes, is there a work-around?
Thanks,
Best Regards
Hong Yuan
--~--~-~--~~~---~--~~
You
f work with concrete table inheritance? It works
in the simple.py.
Best Regards,
Hong Yuan
== The example code below
from sqlalchemy import *
metadata = MetaData()
managers_table = Table('managers', metadata,
Column('employee_id
On 4月24日, 下午5时09分, [EMAIL PROTECTED] wrote:
> orm-wise, u can probably use MapperExtension.before_insert(), and set
> up the value there. but this is worst as speed, synchronisation etc.
Seems workable. I will try this. Although a solution on the SQL level
would be better.
> At lower level (SQL