[sqlalchemy] SQLite and Foreign keys using schema name, again

2010-11-12 Thread Gennady Kovalev
Hi! In production server, in our product we use postgresql as db engine, than supports schema name as sqlalchmy's feature. But we have unit- tests, that must passed without postgresql server. In code we use schema names and foreign keys. There are a lot of topics with sqlite does not support

[sqlalchemy] Re: SQLite and Foreign keys using schema name, again

2010-11-12 Thread Gennady Kovalev
I implemented that fix, as well as an additional change so that the REFERENCES clause is omitted entirely only if the two schemas of the tables are different, that is as of 8cc53b0afb99 . It is a good solution. Thank you. -- You received this message because you are subscribed to the

[sqlalchemy] Declarative and relation to self

2009-01-06 Thread Gennady Kovalev
Hi! I try to clean up my code, and read in google group about possibility create relation to self when class is not defined yet. I write example, but got an error (see below). My code is: cut engine = create_engine('sqlite:///:memory:', echo=True) Base =

[sqlalchemy] Re: Declarative and relation to self

2009-01-06 Thread Gennady Kovalev
On 6 янв, 23:05, Michael Bayer zzz...@gmail.com wrote: this was a bug in 0.5.0rc4 and is fixed in 0.5.0. On Jan 6, 2:49 pm, Gennady Kovalev gennady.kova...@gmail.com wrote: Hi! I try to clean up my code, and read in google group about possibility create relation to self when class

[sqlalchemy] Re: Declarative and relation to self

2009-01-06 Thread Gennady Kovalev
On 6 янв, 23:05, Michael Bayer zzz...@gmail.com wrote: this was a bug in 0.5.0rc4 and is fixed in 0.5.0. Ohh, thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups sqlalchemy group. To post to this group,