Fork me on GitHub
#honeysql
<
2023-03-22
>
Noah Bogart15:03:09

I have a v1 insert-into with `query-values` that formats to "insert into temp_table (with "rows" as (select * from ...) ...)": `(-&gt; (insert-into :temp-table) (query-values (-&gt; (with [:rows (-&gt; (select :*) (from :other) ...)]) ...))`, and i want to transform this to v2. reading the docs, i feel like it should be `(-&gt; (insert-into [:temp-table (-&gt; (with [:rows (-&gt; (select :*) (from :other) ...)]))] ...))` but that doesn't give me the right output.

Noah Bogart15:03:00

Hmm, seems i need to leave off the vector from the insert-into call

Noah Bogart16:03:26

opened a github issue about this misunderstanding (and related misunderstandings) https://github.com/seancorfield/honeysql/issues/480

seancorfield18:03:32

I'm not sure if I understand where the root of the confusion is, so I asked a question there to clarify...

👍 2