Skip to content

Commit

Permalink
refactor: allow returning calls for sqlite
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Mar 1, 2022
1 parent b7ce89c commit 3b3bb7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Database/QueryBuilder/Database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export class DatabaseQueryBuilder extends Chainable implements DatabaseQueryBuil
/**
* Do not chain `returning` in sqlite3 to avoid knex warnings
*/
if (this.client && ['sqlite3', 'mysql'].includes(this.client.dialect.name)) {
if (this.client && ['mysql'].includes(this.client.dialect.name)) {
return this
}

Expand Down
2 changes: 1 addition & 1 deletion src/Database/QueryBuilder/Insert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export class InsertQueryBuilder extends Macroable implements InsertQueryBuilderC
/**
* Do not chain `returning` in sqlite3 to avoid knex warnings
*/
if (this.client && ['sqlite3', 'mysql'].includes(this.client.dialect.name)) {
if (this.client && ['mysql'].includes(this.client.dialect.name)) {
return this
}

Expand Down

0 comments on commit 3b3bb7a

Please sign in to comment.