Re: [Sqlalchemy-users] Many to many problem?

2005-12-15 Thread Robert Leftwich
Michael Bayer wrote: I checked in a tiny patch to alleviate the recursive problem with the particular test case you have below, and added the test to test/ manytomany.py as M2MTest2.testcircular. so now the test passes completely. changeset: http://www.sqlalchemy.org/trac/changeset/713

Re: [Sqlalchemy-users] Fixed TypeError: get_params() keywords must be strings bug

2005-12-15 Thread limodou
2005/12/15, Michael Bayer <[EMAIL PROTECTED]>: > wow, great, im on the go at the moment but ill have a look at this > today or tomorrow. > > I think using reflection may be not very good, after I changed to using Table metadata , everything is ok. -- I like python! My Blog: http://www.donews.net/l

Re: [Sqlalchemy-users] Fixed TypeError: get_params() keywords must be strings bug

2005-12-15 Thread Michael Bayer
wow, great, im on the go at the moment but ill have a look at this today or tomorrow. On Dec 15, 2005, at 3:23 AM, limodou wrote: I think I found the answer. Because in pysqlite2, it use unicode default for everything. So get the column from the system table is also unicode encoded. But as c

Re: [Sqlalchemy-users] two questions

2005-12-15 Thread Michael Bayer
On Dec 14, 2005, at 7:59 PM, limodou wrote: 1. Is there a easy way to detect a table has exist? , you might try saying t = new Table('mytable', engine, autoload=True) and catch an exception. I didnt build a specific function for this yet. 2. How to using transaction? assumi

[Sqlalchemy-users] Fixed TypeError: get_params() keywords must be strings bug

2005-12-15 Thread limodou
I think I found the answer. Because in pysqlite2, it use unicode default for everything. So get the column from the system table is also unicode encoded. But as creating the Column object, it doesn't be encoded to string. So the name and key are both unicode encoded. I changed the code in: class C