blakesmith/pghstore-clj — pull request #6 by dcj (2013-04-14 15:30:08+00:00)
Title: Extended java.util.HashMap with FHstorable

Hello @blakesmith (and @citizenparker)

Wow, I was so happy to find this library!
I tried to use it, but ran into issues. The writes into the DB worked fine,
but the read path back from Postgres -> JDBC -> Korma -> pghstore didn't work.
Somehow, what was getting passed to from-hstore was a java.util.HashMap, not a
org.postgresql.util.PGobject, so no implementation of from-hstore was found for java.util.HashMap.

Has there been a change with one or more "links in the chain" above?

I am running:
Clojure 1.5.1,
Postgres 9.2.x,
[org.clojure/java.jdbc "0.2.3"]
[postgresql "9.2-1002.jdbc4"]
[korma "0.3.0-RC5"]

Anyway, I didn't take the time to really dig into this to understand what the issue was.
I simply threw together a very quick and dirty implementation of from-hstore for java.util.HashMap, which is here in my pull request, just FYI. I'm not claiming my code is the best or right way to do this, if in fact this needs to be done at all...

I'm pretty sure I am unblocked for now, but it would be great to get some more knowledgeable perspective from you guys on this....

Thanks !