Please excuse my ignorance. This is the first time I've played with 
read-string and the reader...

I was trying to serialise some clojure data structures to a database and 
then read them back.
In the data I have some java.sql.Timestamp data. These get serialised as 
#<Timestamp 2012-07-04 00:00:00.000>
When trying to read-string this data I get an Unreadable form 
RuntimeException.

user=> (pr-str (java.sql.Timestamp. (.getTime (java.util.Date.))))
"#<Timestamp 2012-07-04 15:17:03.959>"

user=> (read-string (pr-str (java.sql.Timestamp. (.getTime 
(java.util.Date.)))))
java.lang.RuntimeException: java.lang.Exception: Unreadable form 
(NO_SOURCE_FILE:0)

Any clues to how I fix this?

Thanks,
Andrew

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