Skip to content

Commit 5a34e6a

Browse files
authored
Add IDENTIFIED BY to mysql phrases (#692)
2 parents 81da14c + b108149 commit 5a34e6a

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

src/languages/mariadb/mariadb.formatter.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ const reservedPhrases = expandPhrases([
261261
'ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]',
262262
'CHARACTER SET',
263263
'{ROWS | RANGE} BETWEEN',
264+
'IDENTIFIED BY',
264265
]);
265266

266267
// For reference: https://mariadb.com/kb/en/sql-statements-structure/

src/languages/mysql/mysql.formatter.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ const reservedPhrases = expandPhrases([
228228
'ON {UPDATE | DELETE} [SET NULL]',
229229
'CHARACTER SET',
230230
'{ROWS | RANGE} BETWEEN',
231+
'IDENTIFIED BY',
231232
]);
232233

233234
// https://dev.mysql.com/doc/refman/8.0/en/

src/languages/singlestoredb/singlestoredb.formatter.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ const reservedPhrases = expandPhrases([
231231
'ON UPDATE',
232232
'CHARACTER SET',
233233
'{ROWS | RANGE} BETWEEN',
234+
'IDENTIFIED BY',
234235
]);
235236

236237
export const singlestoredb: DialectOptions = {

0 commit comments

Comments
 (0)