PKTest.testprimarykey actually works with postgres and mysql, its due
to sqlite's lack of composite primary key support. #49 has a fix
pending.
when i run this test, the commit works:
m2 = mapper(Address, addresses)
m = mapper(User, users, properties={
'boston_addresses' : relation(m2, primaryjoin=
and_(users.c.user_id==Address.c.user_id,
Address.c.email_address.like('%boston%'))),
'newyork_addresses' : relation(m2, primaryjoin=
and_(users.c.user_id==Address.c.user_id,
Address.c.email_address.like('%newyork%'))),
})
u = User()
a = Address()
a.email_address = '[EMAIL PROTECTED]'
b = Address()
b.email_address = '[EMAIL PROTECTED]'
u.boston_addresses.append(a)
u.newyork_addresses.append(b)
objectstore.commit()
so whats a test case you have that fails ?
On Feb 4, 2006, at 1:38 AM, Robert Leftwich wrote:
Michael Bayer wrote:
its supposed to be able to save. never tested it tho, so
probably needs some fixing. u might want to add a ticket for it
(since theres a lot of tasks.....at least i can get an organized
view there)
Ok.
Hmmm, I wonder if it is related to Ticket #49 and the failing
PKTest.testprimarykey() in test/objectstore.py (although I think
that has been failing for a while)?
Robert
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Sqlalchemy-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users