I need to be able to load and execute a file with multiple SQL statements in clojure. For example, lets say I have a file with statements like:
ALTER TABLE bla...;
ALTER TABLE foo...;
UPDATE bla SET ...;
UPDATE foo SET ...;
ALTER TABLE bla DROP...;
ALTER TABLE foo DROP...;
You get the idea-- a file with many statements that are semicolon terminated.
I'm currently getting the following error when trying to use do-commands
:
PSQLException org.postgresql.util.PSQLException: Too many update results were returned.