honeysql

Discussion of https://github.com/seancorfield/honeysql :slightly_smiling_face:
Frank C. 2020-07-19T18:26:11.269800Z

Hi, all. Really enjoying honeysql, thanks to @seancorfield for the great work. Does anyone have any info on this issue? I'm using honey with PG and the extension. When trying to insert, I get "Execution error (AssertionError) at honeysql.format/seq->sql (format.cljc:385). Assert failed: Alias should have two parts["Genre A"]". "Genre A" is a string in a vector (in this example, the only string). For example: {:id "1" :genres ["Genre A"]}. The key is for a PG text array column. I also tried this outside of the PG extension and get the same assertion error. My searches for this or related issues haven't worked. Any ideas?

seancorfield 2020-07-19T19:29:12.271800Z

@frankiecheezoli That sounds like a bug in HoneySQL. Can you create an issue with enough details for me to repro? I'm a bit surprised it's a path that attempts to turn values into SQL rather than just using them as plain values.

Frank C. 2020-07-19T19:30:40.272200Z

@seancorfield Thanks for the feedback, I'll do that.

1