seancorfield / next-jdbc

A modern low-level Clojure wrapper for JDBC-based access to databases.
https://cljdoc.org/d/com.github.seancorfield/next.jdbc/
Eclipse Public License 1.0
755 stars 90 forks source link

Returning Clause Documentation Typo #202

Closed dharrigan closed 2 years ago

dharrigan commented 2 years ago

Hi! I think there may be a slight typo, here:

https://cljdoc.org/d/com.github.seancorfield/honeysql/2.2.868/doc/getting-started/postgresql-support#returning,

namely the example of (returning [:did :dname]).

I believe in the documentation https://cljdoc.org/d/com.github.seancorfield/honeysql/2.2.868/api/honey.sql.helpers#returning,

it's (returning & cols), so should it be (returning :did :dname)?

At least, the later works for me, not the former :slightly_smiling_face:

-=david=-

seancorfield commented 2 years ago

I think this issue was meant to be this issue over on HoneySQL? https://github.com/seancorfield/honeysql/issues/399