[sqlalchemy] Re: 0.5.7

2009-12-24 Thread ellonweb
On Dec 23, 9:02 pm, Michael Bayer mike...@zzzcomputing.com wrote: ellonweb wrote: Hi, I was just wondering if there's any eta on 0.5.7 yet? The website does say a typical release pace of one point release per month and it's been over 3 months since .5.6! My code relies on a couple of the

[sqlalchemy] Integer e null values - how to?

2009-12-24 Thread mando
Hi, I have somes integer fields on my table, but sometimes I need to leave this empty when I pass the values. So, if from a GUI I pass the values '' or , I receives error. Also if I pass null. What kind of values I need to pass to leave the field empty? Thanks a lot, and merry Xmas!! -- You

[sqlalchemy] mark as new

2009-12-24 Thread selam
how can i mark as new an object when is dirty ? an example: obj = session.query(cls).limit(1).first(); # generate select and fetch/build obj.is_deleted = True #change data session.commit() #thats must generate INSERT not update statement -- Saygılar İyi Çalışmalar Timu EREN ( a.k.a selam )

[sqlalchemy] MySQL has gone away error

2009-12-24 Thread karikris...@gmail.com
I have the follwing setting and I create engine from config. sqlalchemy.url : mysql://sfdev:sf...@localhost:3306/sfdev sqlalchemy.pool_recycle : 3600 sqlalchemy.convert_unicode : true I am getting the following error. Seems like recycle required, but I have mentioned recycle in the

[sqlalchemy] Re: Output/Update Current Schema?

2009-12-24 Thread Nick Retallack
I've looked at sqlalchemy-migrate, but I can't figure out how it works. Can you give me an example of how to rename a column in an existing table? http://packages.python.org/sqlalchemy-migrate/changeset.html#column They mention it here, but it's unclear where this column object came from. What