support AS in DELETE FROM alias

This commit is contained in:
Sean Corfield 2021-09-01 10:20:19 -07:00
parent 871908d5c9
commit ec758dd818
2 changed files with 3 additions and 2 deletions

View file

@ -1,6 +1,7 @@
# Changes
* 2.0.next in progress
* Support `AS` aliasing in `DELETE FROM`.
* Switch from `readme` to `test-doc-blocks` so all documentation is tested!
* Clean up build/update deps.

View file

@ -380,8 +380,8 @@
(defn- format-selects [k xs]
(format-selects-common
(sql-kw k)
(#{:select :select-distinct :from :window
'select 'select-distinct 'from 'window}
(#{:select :select-distinct :from :window :delete-from
'select 'select-distinct 'from 'window 'delete-from}
k)
xs))