Skip to content

Commit

Permalink
refactor: ignore mysql dialect returning warning
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Jan 12, 2020
1 parent eac50c7 commit 7ab7f17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Database/QueryBuilder/Insert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export class InsertQueryBuilder implements InsertQueryBuilderContract {
/**
* 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 7ab7f17

Please sign in to comment.