Skip to content

Commit

Permalink
fix #441
Browse files Browse the repository at this point in the history
  • Loading branch information
seancorfield committed Nov 7, 2022
1 parent fd64353 commit db1b37e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changes

* 2.4.next in progress
* Fix [#441](https://github.com/seancorfield/honeysql/issues/441) by adding `:replace-into` to in-flight clause order (as well as registering it for the `:mysql` dialect).

* 2.4.947 -- 2022-11-05
* Fix [#439](https://github.com/seancorfield/honeysql/issues/439) by rewriting how DDL options are processed; also fixes [#386](https://github.com/seancorfield/honeysql/issues/386) and [#437](https://github.com/seancorfield/honeysql/issues/437); **Whilst this is intended to be purely a bug fix, it has the potential to be a breaking change -- hence the version jump to 2.4!**
* Fix [#438](https://github.com/seancorfield/honeysql/issues/438) by
Expand Down
6 changes: 5 additions & 1 deletion src/honey/sql.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,12 @@
:mysql {:quote #(strop \` % \`)
:clause-order-fn
#(do
;; side-effect: updates global clauses...
(register-clause! :replace-into :insert-into :insert-into)
(add-clause-before % :set :where))}
(-> %
(add-clause-before :set :where)
;; ...but not in-flight clauses:
(add-clause-before :replace-into :insert-into)))}
:oracle {:quote #(strop \" % \") :as false}})))

; should become defonce
Expand Down

0 comments on commit db1b37e

Please sign in to comment.