Disregard my email, apparently java.sql.Date maps to SQL Date, time value
is truncated.


L

2012/7/6 László Török <ltoro...@gmail.com>

> 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
>
>


-- 
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 clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to