Hi,

I have a problem using the global session auto-commit:


<code>
session.configure(autocommit=True,autoflush=True)

# number is primary key and the table already have a project number 666
Project(name='pop',number=666)

Project.query.all() #boom
</code>

as you see, i get the exception only in "Project.query.all()"

is there a way to get the exception in  "Project(name='pop',number=666)"?

Thanks,

Yoav.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SQLElixir" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sqlelixir?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to