Closed ghost closed 6 years ago
This is the result of using clojure.java.jdbc
in a REPL directly:
(require 'clojure.java.jdbc)
;;=> nil
(def db-spec {:dbtype "sqlite" :dbname "db.sqlite3"})
;;=> #'user/db-spec
(clojure.java.jdbc/query db-spec ["ALTER TABLE applications RENAME COLUMN logo_url TO logo"])
;;=> ()
Would you happen to have a test project I can look at. It doesn't look like 3.25.2-SNAPSHOT is up in public Maven repos, what's the process for building it?
Would you happen to have a test project I can look at.
No open source code, sadly.
It doesn't look like 3.25.2-SNAPSHOT is up in public Maven repos, what's the process for building it?
Two possibilites:
lein deploy
into a test project:
Just released sqlite-jdbc 3.25.2
Just released sqlite-jdbc 3.25.2
Thanks a lot!
Ok, I can reproduce the issue locally with the latest version. The problem seems to be with db-do-prepared
throwing an error here. The error is reproducible by running the command directly:
(jdbc/db-do-prepared
{:connection-uri "jdbc:sqlite:test.db"}
"ALTER TABLE applications RENAME COLUMN logo TO logo_url")
I'll take a look at switching to db-do-commands
instead.
Just pushed out migratus 1.1.0
to Clojars with the fix, let me know if everything looks good.
When trying to use the following migration file with
[org.xerial/sqlite-jdbc "3.25.2-SNAPSHOT"]
(needs https://github.com/xerial/sqlite-jdbc/issues/368) against an SQLite3 database, migratus aborts with an error:Failure: Query returns results
When executing the same query in the
sqlite3
CLI program, I see no "result" being printed:I would like to know how to prevent this error / how to discard the result.