[sqlalchemy] How can I make a rollback in a sequence?

2014-08-20 Thread Rafael Henrique da Silva Correia
Hi ! I have a block of code similar to this I made to test: def TEST(): teste = Test(descricao=str('wololo')) try: db.session.add(wololo) db.session.commit() db.session.close() except IntegrityError, e: db.session.rollback()

Re: [sqlalchemy] How can I make a rollback in a sequence?

2014-08-20 Thread Wichert Akkerman
On 20 Aug 2014, at 20:02, Rafael Henrique da Silva Correia rafaelhenr...@gmail.com wrote: Hi ! I have a block of code similar to this I made to test: def TEST(): teste = Test(descricao=str('wololo')) try: db.session.add(wololo) db.session.commit()

Re: [sqlalchemy] selecting null

2014-08-20 Thread Michael Bayer
On Aug 20, 2014, at 7:16 PM, Dave Vitek dvi...@grammatech.com wrote: Hi all, I recently upgraded from 0.7.10 to 0.9.7. I'm seeing what looks like a regression: (Pdb) p str(select([null(), null()])) 'SELECT NULL AS anon_1' After the upgrade, sqlalchemy seems to coalesce multiple