We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
the following query:
await db.updateTable("tableA") .innerJoin("tableB", "tableB.id", "tableA.tableB_id") .set({ foo: 1 }) .where("tableB.field", "=", 1) .execute();
generates following SQL:
update tableA set foo = 1 inner join tableB on tableB.id = tableA.tableB_id where tableB.field = 1
while correct syntax (for MySQL) should be:
update tableA inner join tableB on tableB.id = tableA.tableB_id -- <-- order of these swapped set foo = 1 -- <-- order of these swapped where tableB.field = 1
tested with latest Kysely version (0.27.4) and using MySQL driver.
The text was updated successfully, but these errors were encountered:
woops, duplicate of #192 (was searching for UPDATE with JOIN)
Sorry, something went wrong.
No branches or pull requests
the following query:
generates following SQL:
while correct syntax (for MySQL) should be:
tested with latest Kysely version (0.27.4) and using MySQL driver.
The text was updated successfully, but these errors were encountered: