From f49c8779a8d8bb8c62d35efbb0c964a92cc7a62d Mon Sep 17 00:00:00 2001 From: dankondr Date: Mon, 25 Jan 2021 16:20:01 +0300 Subject: [PATCH] Add repeat MySQL compatibility alias --- src/Functions/repeat.cpp | 2 +- .../0_stateless/01670_test_repeat_mysql_dialect.reference | 1 + tests/queries/0_stateless/01670_test_repeat_mysql_dialect.sql | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 tests/queries/0_stateless/01670_test_repeat_mysql_dialect.reference create mode 100644 tests/queries/0_stateless/01670_test_repeat_mysql_dialect.sql diff --git a/src/Functions/repeat.cpp b/src/Functions/repeat.cpp index e612ceb4945..29347d6a275 100644 --- a/src/Functions/repeat.cpp +++ b/src/Functions/repeat.cpp @@ -252,7 +252,7 @@ public: void registerFunctionRepeat(FunctionFactory & factory) { - factory.registerFunction(); + factory.registerFunction(FunctionFactory::CaseInsensitive); } } diff --git a/tests/queries/0_stateless/01670_test_repeat_mysql_dialect.reference b/tests/queries/0_stateless/01670_test_repeat_mysql_dialect.reference new file mode 100644 index 00000000000..58ee46e8942 --- /dev/null +++ b/tests/queries/0_stateless/01670_test_repeat_mysql_dialect.reference @@ -0,0 +1 @@ +TestTestTest diff --git a/tests/queries/0_stateless/01670_test_repeat_mysql_dialect.sql b/tests/queries/0_stateless/01670_test_repeat_mysql_dialect.sql new file mode 100644 index 00000000000..29fe81012ec --- /dev/null +++ b/tests/queries/0_stateless/01670_test_repeat_mysql_dialect.sql @@ -0,0 +1 @@ +SELECT REPEAT('Test', 3); \ No newline at end of file