-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Postgres Incompatibility #44
Comments
Thanks for the issue... should be fixed on a new release (0.2.3). Let me know if you see any issues. |
That was quick! Thank you... I don't seem to be getting back the ids anymore in postgres, mysql seems to work....
generates correctly:
but res is [] on postgres and contains an id on mysql. Maybe there was a side effect from some of the changes? I'll comb through your changes and will see if I can spot anything. |
In postgres, you need to make sure you're passing the second parameter in the
Also, the |
Awesome. That worked! Thank you again for being so quick! (and writing such a great library) |
We're using knex for our queries and are in the process of moving from mysql to postgres. Great library!
We ran into a compatibility problem when creating an empty record. In knex.js's runQuery method, this.toSql() generates the following for creating a new empty record:
but based on a quick (Google search)[http://www.postgresql.org/message-id/Pine.BSF.4.21.0105191344070.50686-100000@megazone23.bigpanda.com], it should be:
BTW, mysql generates acceptable code:
and I haven't tested sqlite3.
Is this something you could create a patch for? (I'm in crunch period and unfortunately do not have the time today to write a test, test on all sql variants, etc). If not, I can try to find time over the weekend.
Cheers!
The text was updated successfully, but these errors were encountered: