Closed carcinocron closed 3 years ago
exec
is only for single statements. You're combining multiple statements. Instead, you should have separate calls for each statement.
Multi-statement support is currently limited by crystal-db (crystal-lang/crystal-db#113).
I discovered that exec_all
does what I expected unprepared
to do.
Ah right, this shard adds #exec_all
as an additional method not available in the generic crystal-db API. Sry, I didn't recall that earlier.
looks like unprepared isn't working.