Fork me on GitHub
#honeysql
<
2022-12-19
>
orestis11:12:36

Interesting edge-case:

(h/where {:where [:= 1 1]} false)
;=> {:where [:and [:= 1 1] false]}
but
(h/where {} false)
;=> {}

orestis11:12:38

I worked around this by doing instead

(h/where query [:= [:inline false] [:inline true]])

seancorfield17:12:49

Is that using the latest version? There was a bug in where around that which was addressed recently.

orestis18:12:06

Ah perhaps I am running some versions behind. We need to really automate updating our clj dependencies.

seancorfield18:12:21

This sounds like issue #431 which was fixed in 2.4.947 -- 2022-11-05

orestis18:12:09

Still on 2.2.868 😳

seancorfield18:12:03

That's only a few releases behind 🙂