On Jul 5, 2007, at 6:00 AM, Nick wrote:
> class TestC(Entity):
> with_fields(
> name = Field(Unicode(50), nullable=False),
> created = Field(TIMESTAMP(timezone=True),
> default=func.datetime('now', 'localtime'))
> )
>
set up the func as
func.datetime('now', 'localtime', type=TIMESTAMP)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sqlalchemy" 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/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---