Hi.  I'm using SQLAlchemy with Turbogears and I'm having trouble with
the example in the SA doc, though I can get other things to work.
Here's the doc link.

http://www.sqlalchemy.org/docs/metadata.html#metadata_defaults_passive

The code in question is

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

This doesn't work for me though the following columns I've tried work.

Column("last_modified", TIMESTAMP,
PassiveDefault(text("CURRENT_TIMESTAMP")))
Column("bookmark", Boolean, PassiveDefault(text("False")), index=True)

Is this a bug in the docs, SA, or am I just doing something
incorrectly?  I'm using version 0.3.8, though an older version I had
didn't work either.

Thanks,

Todd


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to