Skip to content

Commit

Permalink
refactor: supress returning warning for mysql dialect
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Jan 12, 2020
1 parent 768f704 commit a34563f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Database/QueryBuilder/Database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ export class DatabaseQueryBuilder extends Chainable implements DatabaseQueryBuil
/**
* Do not chain `returning` in sqlite3 to avoid knex warnings
*/
if (this.client && this.client.dialect === 'sqlite3') {
if (this.client && ['sqlite3', 'mysql'].includes(this.client.dialect)) {
return this
}

Expand Down

0 comments on commit a34563f

Please sign in to comment.