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
useReturning
is not correctly set for the SQLite DB dialect
#14193
Comments
Can you check it out again? I |
Are you using |
As referenced in docs. I'm using |
I would, yes, as it is generally better than |
Also you can change this example
I changed to next code
P.S. Thanks. With |
ping @pwizla Could you have a look at this :) |
This issue has been mentioned on Strapi Community Forum. There might be relevant details there: https://forum.strapi.io/t/issue-4-3-8-after-update-sqlite-error-near-returnin/22172/5 |
Bug report
Required System information
Describe the bug
The SQLite Dialect class does not definite a
useReturning
method, which defaults the value tofalse
even though SQLite does supportRETURNING
statements.This causes a series of issues, including
insert
queries not returning IDs appropriately from the query builder.Steps to reproduce the behavior
entity-manager.js
file to console.log the result ofawait this.createQueryBuilder(uid).insert(dataToInsert).execute()
.strapi.db.query(<UID>).createMany({ data: [<ENTRIES>] })
.Expected behavior
useReturning
should be defined so that it returnstrue
.The text was updated successfully, but these errors were encountered: