alexey_baranov
2009-10-05 08:01:37 UTC
Why should I use java.sql.Timestamp wrapper when want to pass java.util.Date
parameter as in pure Java?
[code]
sql.execute('insert into table1 values(?)', [new java.sql.Timestamp(new
Date())])
[/code]
insted of simple
[code]
sql.execute('insert into table1 values(?)', [new Date()])
[/code]
Is it possible to automatically convert in this case?
parameter as in pure Java?
[code]
sql.execute('insert into table1 values(?)', [new java.sql.Timestamp(new
Date())])
[/code]
insted of simple
[code]
sql.execute('insert into table1 values(?)', [new Date()])
[/code]
Is it possible to automatically convert in this case?
--
View this message in context: http://www.nabble.com/groovy.sql.Sql-Date-paremeters-tp25746598p25746598.html
Sent from the groovy - user mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
View this message in context: http://www.nabble.com/groovy.sql.Sql-Date-paremeters-tp25746598p25746598.html
Sent from the groovy - user mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email