Re: [sqlalchemy] Some weir(for me) behavior of one-to-one relation.

2010-06-10 Thread bogun . dmitriy
I have 2 tables with one-to-one relation, and I got some unexpected behaviour from sqlalchemy. In attach there is demonstration script and its log. If I try to add object into table right for already existing key I expect error on DB level, telling about violation of unique constraint, but

[sqlalchemy] Some weir(for me) behavior of one-to-one relation.

2010-06-09 Thread bogun . dmitriy
Hello. I have 2 tables with one-to-one relation, and I got some unexpected behaviour from sqlalchemy. In attach there is demonstration script and its log. If I try to add object into table right for already existing key I expect error on DB level, telling about violation of unique constraint,

Re: [sqlalchemy] Some weir(for me) behavior of one-to-one relation.

2010-06-09 Thread Michael Bayer
On Jun 9, 2010, at 7:10 PM, bogun.dmit...@gmail.com wrote: Hello. I have 2 tables with one-to-one relation, and I got some unexpected behaviour from sqlalchemy. In attach there is demonstration script and its log. If I try to add object into table right for already existing key I