fukamachi / sxql

An SQL generator for Common Lisp.
BSD 3-Clause "New" or "Revised" License
363 stars 31 forks source link

Returning multiple items from insert #70

Closed diasbruno closed 1 year ago

diasbruno commented 1 year ago

Using returning (with multiple columns) on a insert statement generates incorrect query.

(returning :id :name)

produces

ID(`name`)

expected

`id`, `name`
fukamachi commented 1 year ago

Sorry for the delay. I fixed it by #72. Just a note for a workaround, (sxql:returning (sxql:fields :id :name)) works expectedly.

diasbruno commented 1 year ago

Thanks, @fukamachi. #72 looks really good.