summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorCarlo Zancanaro <carlo@clearboxsystems.com.au>2013-05-14 12:31:50 +1000
committerCarlo Zancanaro <carlo@clearboxsystems.com.au>2013-05-14 12:31:50 +1000
commit1c5a0359f7b048ad01a25607661229e13b5a6be7 (patch)
treeab275c4e5deba1920a8cbbbaef559a04f608e864 /README.md
parent431b961d6bbb0008bdb4fce81ad2cf9d6ab0a287 (diff)
Apparently I got the jdbc query syntax wrong. Corrected.
The parameters should be passed in the `rest` of the vector, not as a separate seq. My bad.
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index adfccdd..cd688cc 100644
--- a/README.md
+++ b/README.md
@@ -19,7 +19,7 @@ data to be inserted, updated and deleted.
(-> (s/table :users)
(s/project [:id :username])
deref)
- ; => ["SELECT \"users\".\"id\", \"users\".\"username\" FROM \"users\"" ()]
+ ; => ["SELECT \"users\".\"id\", \"users\".\"username\" FROM \"users\""]
(-> (s/table {:users :u})
(s/project [:id :username])
@@ -30,7 +30,7 @@ data to be inserted, updated and deleted.
'(= :uid :pid))
(s/project [:username])
deref)
- ; => ["SELECT \"u\".\"username\" FROM \"users\" AS \"u\" JOIN \"people\" AS \"p\" ON (\"u\".\"id\" = \"p\".\"id\") WHERE (\"p\".\"fname\" = ?)" ("Henry"))]
+ ; => ["SELECT \"u\".\"username\" FROM \"users\" AS \"u\" JOIN \"people\" AS \"p\" ON (\"u\".\"id\" = \"p\".\"id\") WHERE (\"p\".\"fname\" = ?)" "Henry")]
## License