I use postgres and everything works fine. Can you show some code ?
Feb 16, 2015
9
Level 5
Postgres does not return last_insert_id
Hello, I have an app which uses postgres. I developed it usign sqlite and when I made the switch to posgress, after trying to create a new user I got this error
Syntax error: 7 ERROR: syntax error at or near "returning" at character 107
(SQL: insert into "users" ("name", "email", "password", "updated_at", "created_at") values (Example, support@domain.gr, some_rand_str, 2015-02-16 13:28:46, 2015-02-16 13:28:46) returning "id")
I had the same problem with another application using pgsql as well, but I cannot remember how I rackled it. Can anyone help please?
Thank you
Please or to participate in this conversation.