-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to execute update statement #92
Comments
Could you provide a full stack trace, please (by enabling |
|
Looks like you run queries from |
I tried both, from p.s: Wrote from another account |
Looks like, you query is considered as resulted with Could you check it out? The actual debug process is simple. (in-ns 'ejc-sql.connect)
(eval-sql-core :db @db
:sql "Actual SQL query") |
What about direct evaluation: (j/execute! @db (list "UPDATE profiles SET avatar='test' WHERE id=1")) |
|
(ejc-create-connection
"my-db-conn"
:classpath "/home/rrudakov/.m2/repository/postgresql/postgresql/9.3-1102.jdbc41/postgresql-9.3-1102.jdbc41.jar"
:dbtype "postgresql"
:dbname "dbname"
:host "hostname"
:port "5432"
:user "a_user"
:password "secret")
mvn org.apache.maven.plugins:maven-dependency-plugin:get -Dartifact=org.postgresql:postgresql:42.2.5 then update (ejc-create-connection
...
:classpath "/home/rrudakov/.m2/repository/postgresql/postgresql/42.2.5/postgresql-42.2.5.jar
...
|
Seems like it works now. Thank you very much. |
You are welcome. Feel free to ask about |
Hi @kostafey , Any suggestions about how to debug/fix it? |
@AndreaCrotti Could you please update |
Actually I was already trying with 0.7.10, I just ran a The db is a Postgres instance in a docker container
I can try with some other version too potentially if that could the issue. |
I also tried now with Postgres 12.1 to see if it made a difference but I get the same result.. |
@AndreaCrotti, could you provide your database configuration created by |
I have the same problem - namely, if I try to do
I could provide the appropriate versions, or better errors, if I knew how, @kostafey.
|
I have the same problem.
|
After connecting to PostgreSQL database, I can execute select statements, but any update statement produce error:
My configuration:
Emacs version: GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.7) of 2019-03-17
The text was updated successfully, but these errors were encountered: