Skip to content

Instantly share code, notes, and snippets.

@ctataryn
Created November 26, 2011 15:39
Show Gist options
  • Save ctataryn/1395874 to your computer and use it in GitHub Desktop.
Save ctataryn/1395874 to your computer and use it in GitHub Desktop.
Clojure Map problem
quadbot.client=> (use 'quadbot.persistence :reload-all)
nil
quadbot.client=> (def ident (invoke-with-connection insert-users2))
#'quadbot.client/ident
quadbot.client=> (println ident)
{:SCOPE_IDENTITY() 29}
nil
quadbot.client=> (:SCOPE_IDENTITY() ident)
{:SCOPE_IDENTITY() 29}
quadbot.client=> (first ident)
[:SCOPE_IDENTITY() 29]
quadbot.client=> (second (first ident))
29
quadbot.client=> (get ident :SCOPE_IDENTITY())
()
quadbot.client=> (get ident ":SCOPE_IDENTITY()")
nil
quadbot.client=>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment