diff --git a/src/languages/mariadb/mariadb.formatter.ts b/src/languages/mariadb/mariadb.formatter.ts index d8832b217d..3a5c80b81b 100644 --- a/src/languages/mariadb/mariadb.formatter.ts +++ b/src/languages/mariadb/mariadb.formatter.ts @@ -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/ diff --git a/src/languages/mysql/mysql.formatter.ts b/src/languages/mysql/mysql.formatter.ts index e1fdf63c2b..71082775ff 100644 --- a/src/languages/mysql/mysql.formatter.ts +++ b/src/languages/mysql/mysql.formatter.ts @@ -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/ diff --git a/src/languages/singlestoredb/singlestoredb.formatter.ts b/src/languages/singlestoredb/singlestoredb.formatter.ts index 04227762a5..658b6a7026 100644 --- a/src/languages/singlestoredb/singlestoredb.formatter.ts +++ b/src/languages/singlestoredb/singlestoredb.formatter.ts @@ -231,6 +231,7 @@ const reservedPhrases = expandPhrases([ 'ON UPDATE', 'CHARACTER SET', '{ROWS | RANGE} BETWEEN', + 'IDENTIFIED BY', ]); export const singlestoredb: DialectOptions = {