Jamie Bullock wrote:
>
>
>
> Only issue now is that if you have a NOT NULL constraint on a field,
> an IntegrityError exception gets raised when flush() is called. One
> way round this is to supply a dummy value for the field in question.
> Is there a better way to prevent the exception?

thats what the server side default accomplishes.  flush() only sends
"None" if you've actually set the value to "None" on the object.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
To unsubscribe from this group, send email to 
sqlalchemy+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to