Skip to content
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

returning clause has no effect on mysql driver #5993

Open
NotEvenANeko opened this issue Aug 10, 2023 · 0 comments · May be fixed by knex/documentation#543
Open

returning clause has no effect on mysql driver #5993

NotEvenANeko opened this issue Aug 10, 2023 · 0 comments · May be fixed by knex/documentation#543
Labels

Comments

@NotEvenANeko
Copy link

mysql doesn't support returning clause, but the document says that // Returns [{ id: 2 } ] in "mysql", "sqlite"; . In mysql it should return [row.insertedId] and [row.affectedRows] when update.

https://knexjs.org/guide/query-builder.html#returning

wolfhoundjesse referenced this issue in wolfhoundjesse/documentation Sep 28, 2023
Changed the reference to "mysql" to "mssql". Fixes #534
@rluvaton rluvaton added website and removed website labels Jan 31, 2024
@rluvaton rluvaton transferred this issue from knex/documentation Mar 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants