Skip to content

Commit 29e6012

Browse files
authored
Merge pull request #36 from AntonOellerer/patch-1
Update README.md
2 parents 153d775 + 3d2a85d commit 29e6012

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ The query creation and usage is exactly the same as honeysql.
8888
(-> (insert-into :distributors)
8989
(values [{:did 23 :dname "Foo Distributors"}])
9090
(psqlh/on-conflict :did)
91-
(psqlh/do-update-set! [:dname "EXCLUDED.dname || ' (formerly ' || distributors.dname || ')'"])
91+
(psqlh/do-update-set! [:dname "EXCLUDED.dname || ' (formerly ' || distributors.dname || ')'"] [:downer "EXCLUDED.downer"])
9292
sql/format)
93-
=> ["INSERT INTO distributors (did, dname) VALUES (23, ?) ON CONFLICT (did) DO UPDATE SET dname = ?" "Foo Distributors" "EXCLUDED.dname || ' (formerly ' || d.dname || ')'"]
93+
=> ["INSERT INTO distributors (did, dname) VALUES (23, ?) ON CONFLICT (did) DO UPDATE SET dname = ?, downer = ?" "Foo Distributors" "EXCLUDED.dname || ' (formerly ' || d.dname || ')'" "EXCLUDED.downer"]
9494
```
9595

9696
### insert into with alias

0 commit comments

Comments
 (0)