db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Seth Milder <mrs...@physics.gmu.edu>
Subject Re: [Defaults for Timestamp]
Date Mon, 03 Mar 2003 21:40:15 GMT

Campbell, Justin wrote:
> Seth -
> 	We've found an issue with this over here, as well. I believe that
> because each database implements the "now()"-type functions differently
> (e.g. SQL Server uses "GetDate()"), Torque skips over it in an attempt to
> remain generic. We found that if your column is a timestamp type in your XML
> schema handed to the Torque-java-generator and you use the following string
> (still in the XML schema): 'default=""', it will create a default of "new
> Date()" in your java code. Sadly, this is the *client* date, not the
> database date. If you absolutely must use the database date, you'll need to
> probably change the generated code (or default it wherever you use it --
> your choice).
> Hope this helps.
> - Justin

Actually, I think I prefer the client date for my purposes. That is 
great! Thanks a lot.

Seth Milder
Department of Physics and Astronomy
MS 3f3
George Mason University
Fairfax, VA
I'm not the person your mother warned you about... her imagination isn't 
that good. -- Amy Gorin

View raw message