Chris
11/30/2023, 9:08 PMid, name or spec expected, got blah
. I don't understand why I'm getting this error. Can anyone help?Aleksei Tirman [JB]
12/04/2023, 8:43 AMexec
method within the transaction. Here is an example:
transaction {
exec("SELECT countrycodes.id FROM countrycodes") { rs ->
while (rs.next()) {
println(rs.getString("id"))
}
}
}
Chris
12/04/2023, 8:36 PMAleksei Tirman [JB]
12/05/2023, 8:04 AMChris
12/05/2023, 8:06 AMChantal Loncle
12/05/2023, 2:32 PMexec()
uses @Language("sql")
on its stmt
parameter to enable (generic sql) language injection for code assistance in the IDE.
Assuming that you're using IntelliJ, if you've configured the SQL dialect to match your datasource and you're confident that the SQL statement is valid for that dialect, then the error may be related to this bug: KTIJ-24766Chris
12/05/2023, 2:39 PM