Skip to content

Commit

Permalink
Add IDENTIFIED BY to mysql phrases (#692)
Browse files Browse the repository at this point in the history
  • Loading branch information
nene authored Dec 9, 2023
2 parents 81da14c + b108149 commit 5a34e6a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/languages/mariadb/mariadb.formatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ const reservedPhrases = expandPhrases([
'ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]',
'CHARACTER SET',
'{ROWS | RANGE} BETWEEN',
'IDENTIFIED BY',
]);

// For reference: https://mariadb.com/kb/en/sql-statements-structure/
Expand Down
1 change: 1 addition & 0 deletions src/languages/mysql/mysql.formatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ const reservedPhrases = expandPhrases([
'ON {UPDATE | DELETE} [SET NULL]',
'CHARACTER SET',
'{ROWS | RANGE} BETWEEN',
'IDENTIFIED BY',
]);

// https://dev.mysql.com/doc/refman/8.0/en/
Expand Down
1 change: 1 addition & 0 deletions src/languages/singlestoredb/singlestoredb.formatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ const reservedPhrases = expandPhrases([
'ON UPDATE',
'CHARACTER SET',
'{ROWS | RANGE} BETWEEN',
'IDENTIFIED BY',
]);

export const singlestoredb: DialectOptions = {
Expand Down

0 comments on commit 5a34e6a

Please sign in to comment.