I had seen the PassiveDefault option in the SA docs, but didn't get it
to work so I gave up.  After your responses I tried a bit harder.
Still can't get the example on the linked page to work, but I was able
to get what I need to work after upgrading to the newest version of
SQLAlchemy.  TIMESTAMP support was added for MySQL.  The other things
I needed were defaulting booleans to true or false, which is also
working.

Thanks for the help.

If anyone is curious here is the example I couldn't get to work.
Maybe I needed to import something, though the docs don't mention
that.

Column('mycolumn', DateTime, PassiveDefault(text("sysdate")))

I get an error that it's bad SQL when running "tg-admin sql create".


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to