Skip to content

Commit b108149

Browse files
committed
Move IDENTIFIED BY to reservedPhrases
1 parent eb427dd commit b108149

File tree

5 files changed

+3
-2
lines changed

5 files changed

+3
-2
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/mariadb/mariadb.keywords.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ export const keywords: string[] = [
7676
'HOUR_MICROSECOND',
7777
'HOUR_MINUTE',
7878
'HOUR_SECOND',
79-
'IDENTIFIED',
8079
'IF',
8180
'IGNORE',
8281
'IGNORE_DOMAIN_IDS',

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/mysql/mysql.keywords.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ export const keywords: string[] = [
8282
'HOUR_MICROSECOND', // (R)
8383
'HOUR_MINUTE', // (R)
8484
'HOUR_SECOND', // (R)
85-
'IDENTIFIED',
8685
'IF', // (R)
8786
'IGNORE', // (R)
8887
'IN', // (R)

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)