Skip to content

Commit dcf281b

Browse files
authored
Update README.md: fixed typo alias
distributors table was referenced by alias d as in postgresql docs, but this is example without aliases
1 parent 1e4e0a6 commit dcf281b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ The query creation and usage is exactly the same as honeysql.
8686
(-> (insert-into :distributors)
8787
(values [{:did 23 :dname "Foo Distributors"}])
8888
(psqlh/on-conflict :did)
89-
(psqlh/do-update-set! [:dname "EXCLUDED.dname || ' (formerly ' || d.dname || ')'"])
89+
(psqlh/do-update-set! [:dname "EXCLUDED.dname || ' (formerly ' || distributors.dname || ')'"])
9090
sql/format)
9191
=> ["INSERT INTO distributors (did, dname) VALUES (23, ?) ON CONFLICT (did) DO UPDATE SET dname = ?" "Foo Distributors" "EXCLUDED.dname || ' (formerly ' || d.dname || ')'"]
9292
```

0 commit comments

Comments
 (0)