Hi guys, I am using this honeysql plugin for postgres (https://github.com/nilenso/honeysql-postgres) to create tables, and as we can see in this example https://github.com/nilenso/honeysql-postgres/blob/master/test/honeysql_postgres/postgres_test.cljc#L99 the query produced is something like ["CREATE TABLE cities (city (varchar(?))" 80]
however if I use next.jdbc
to execute this query, it produces an error. I noticed that earlier versions of this library produced a result like ["CREATE TABLE cities (city (varchar(80))"]
and this second query works correctly on next.jdbc
there are any ways I can handle the first query in next.jdbc?
No. DDL cannot be parameterized. That's a JDBC / SQL restriction.
Interesting, thanks for the answer!