diff --git a/sql/mysql/Positive-Technologies/MySqlParser.g4 b/sql/mysql/Positive-Technologies/MySqlParser.g4 index cae9416d91..a4c2983edf 100644 --- a/sql/mysql/Positive-Technologies/MySqlParser.g4 +++ b/sql/mysql/Positive-Technologies/MySqlParser.g4 @@ -2574,7 +2574,7 @@ scalarFunctionName | ASCII | CURDATE | CURRENT_DATE | CURRENT_TIME | CURRENT_TIMESTAMP | CURTIME | DATE_ADD | DATE_SUB | IF | INSERT | LOCALTIME | LOCALTIMESTAMP | MID | NOW - | REPLACE | SUBSTR | SUBSTRING | SYSDATE | TRIM + | REPEAT | REPLACE | SUBSTR | SUBSTRING | SYSDATE | TRIM | UTC_DATE | UTC_TIME | UTC_TIMESTAMP ; diff --git a/sql/mysql/Positive-Technologies/examples/dml_select.sql b/sql/mysql/Positive-Technologies/examples/dml_select.sql index 4039a7a3a5..551e2af243 100644 --- a/sql/mysql/Positive-Technologies/examples/dml_select.sql +++ b/sql/mysql/Positive-Technologies/examples/dml_select.sql @@ -182,6 +182,7 @@ SELECT * FROM test LIMIT LIMIT1,LIMIT2; -- SCHEMA as a function name SELECT SCHEMA(); -- Functions +SELECT REPEAT('X',2); SELECT mod(3,2);SELECT * FROM TEST WHERE TB_SCHEMA = SCHEMA(); -- Group By with computed column SELECT 1 AS col1, t1.Id FROM t1 GROUP BY col1;