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
http://www.mrseth.org
--
I'm not the person your mother warned you about... her imagination isn't that good. -- Amy Gorin



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to