Fork me on GitHub
#honeysql
<
2023-02-11
>
seancorfield21:02:46

More compatibility with 1.x; improvements to extension machinery:

bananadance 2
seancorfield19:02:27

It has been pointed out that this release breaks [:and true] -- which kind of worked by accident prior to this release:

user=> (require '[honey.sql :as sql])
nil
user=> (sql/format {:select :* :from :table :where [:and true]})
["SELECT * FROM table WHERE TRUE"]
user=> (sql/format {:select :* :from :table :where [:- 1]})
["SELECT * FROM table WHERE ?" 1]
user=>
ā˜ļø:skin-tone-2: that's with 2.4.972 -- and when I made all operators variadic by default, I noticed that unary ops did not work and "fixed" them, but not all operators can be used in unary form šŸ˜ž

seancorfield06:02:29

2.4.980 is available: ā€¢ Fix https://github.com/seancorfield/honeysql/issues/461 -- a regression introduced in 2.4.979 -- by restricting unary operators to just +, -, and ~ (bitwise negation).

seancorfield19:02:27

It has been pointed out that this release breaks [:and true] -- which kind of worked by accident prior to this release:

user=> (require '[honey.sql :as sql])
nil
user=> (sql/format {:select :* :from :table :where [:and true]})
["SELECT * FROM table WHERE TRUE"]
user=> (sql/format {:select :* :from :table :where [:- 1]})
["SELECT * FROM table WHERE ?" 1]
user=>
ā˜ļø:skin-tone-2: that's with 2.4.972 -- and when I made all operators variadic by default, I noticed that unary ops did not work and "fixed" them, but not all operators can be used in unary form šŸ˜ž

seancorfield06:02:29

2.4.980 is available: ā€¢ Fix https://github.com/seancorfield/honeysql/issues/461 -- a regression introduced in 2.4.979 -- by restricting unary operators to just +, -, and ~ (bitwise negation).