Skip to content

Commit

Permalink
Move IDENTIFIED BY to reservedPhrases
Browse files Browse the repository at this point in the history
  • Loading branch information
eeeXun committed Dec 9, 2023
1 parent eb427dd commit b108149
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 2 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: 0 additions & 1 deletion src/languages/mariadb/mariadb.keywords.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ export const keywords: string[] = [
'HOUR_MICROSECOND',
'HOUR_MINUTE',
'HOUR_SECOND',
'IDENTIFIED',
'IF',
'IGNORE',
'IGNORE_DOMAIN_IDS',
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: 0 additions & 1 deletion src/languages/mysql/mysql.keywords.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ export const keywords: string[] = [
'HOUR_MICROSECOND', // (R)
'HOUR_MINUTE', // (R)
'HOUR_SECOND', // (R)
'IDENTIFIED',
'IF', // (R)
'IGNORE', // (R)
'IN', // (R)
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 b108149

Please sign in to comment.