honeysql

2025-05-17T14:53:00.104799Z

2025-05-17T16:20:25.282219Z

p-himik 2025-05-17T16:53:12.838019Z

Just got bitten by this difference. Doesn't seem intentional. And fixing it is potentially a breaking change to somebody. :/

(sql/format (hh/where :x))
=> ["WHERE X()"]
(sql/format {:where :x})
=> ["WHERE x"]

p-himik 2025-05-18T07:20:17.819809Z

Thanks!

seancorfield 2025-05-17T18:33:06.264659Z

Feel free to open an issue. I think I get why it happens and it's a "bug" in the helper...

👍 1
seancorfield 2025-05-17T23:17:25.726169Z

I special-cased where with a single ident. I don't think it will break anything else. I added several more tests -- I think it was just a weird edge case I didn't have a test for and therefore had never noticed...?

2025-05-17T22:14:23.460789Z

2025-05-17T22:41:20.514369Z

2025-05-17T23:15:54.565619Z