diff --git a/CHANGELOG.md b/CHANGELOG.md index ffe3553..fbe46f3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changes +* 2.5.next in progress + * Review metadata -> SQL logic? + * Review quoting logic? + * 2.5.1091 -- 2023-10-28 * Address [#512](https://github.com/seancorfield/honeysql/issues/512) by adding support for subqueries in the `:array` special syntax (for BigQuery and PostgreSQL). This also adds support for metadata on the `:select` value to produce `AS STRUCT` or `DISTINCT`. * Address [#511](https://github.com/seancorfield/honeysql/issues/511) by adding support for BigQuery `CREATE OR REPLACE`. diff --git a/src/honey/sql.cljc b/src/honey/sql.cljc index 2eb8ee9..187bef2 100644 --- a/src/honey/sql.cljc +++ b/src/honey/sql.cljc @@ -675,9 +675,10 @@ (conj acc k) (conj acc k v))) [] - (apply dissoc data [:line :column]))] + (dissoc data ; remove the somewhat "standard" metadata: + :line :column :file + :end-line :end-column))] (when (seq items) - (println "items" items) (str/join " " (mapv sql-kw items)))))) (comment diff --git a/src/honey/sql/helpers.cljc b/src/honey/sql/helpers.cljc index 9a556f2..c96960c 100644 --- a/src/honey/sql/helpers.cljc +++ b/src/honey/sql/helpers.cljc @@ -1165,3 +1165,11 @@ :generic-helper-variadic :generic-helper-unary)) (c/set (conj (map keyword (keys (ns-publics *ns*))) :nest :raw)))))) + +(comment + (require '[honey.sql :refer [format]]) + (-> (delete-from :table) + (where [:in (composite :first :second) + [(composite 1 2) (composite 2 1)]]) + (format)) + )