Hi,
I can't get c.j.jdbc to save a java.sql.Date correctly, as it only saves
the date part not the time.
Reproducible on mysql 5.1:
CREATE TABLE test (inst DATETIME)
then from the repl
(sql/with-connection db
(sql/insert-record :test {:ts (java.sql.Date. 1338029307000)}))
however,
in the database I get:
2012-05-26 00:00:00
instead of the expected
2012-05-26T10:48:27
Is this a bug?
Thanks
--
László Török
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en