From 9dca1e3ca2ee215ab8b4258bb3efbfa264084935 Mon Sep 17 00:00:00 2001 From: Ivan Blinkov Date: Fri, 14 Dec 2018 14:45:45 +0300 Subject: [PATCH] Test for left/right with cut size larger than input --- .../0_stateless/00765_sql_compatibility_aliases.reference | 2 ++ .../queries/0_stateless/00765_sql_compatibility_aliases.sql | 2 ++ 2 files changed, 4 insertions(+) diff --git a/dbms/tests/queries/0_stateless/00765_sql_compatibility_aliases.reference b/dbms/tests/queries/0_stateless/00765_sql_compatibility_aliases.reference index 79c3925bde9..691d92957a4 100644 --- a/dbms/tests/queries/0_stateless/00765_sql_compatibility_aliases.reference +++ b/dbms/tests/queries/0_stateless/00765_sql_compatibility_aliases.reference @@ -11,7 +11,9 @@ o oo o fo +foo r +bar foo foo xxfoo diff --git a/dbms/tests/queries/0_stateless/00765_sql_compatibility_aliases.sql b/dbms/tests/queries/0_stateless/00765_sql_compatibility_aliases.sql index 6cc77010fea..f01560587a8 100644 --- a/dbms/tests/queries/0_stateless/00765_sql_compatibility_aliases.sql +++ b/dbms/tests/queries/0_stateless/00765_sql_compatibility_aliases.sql @@ -13,7 +13,9 @@ select IF(3>2, 1, 0); select substring('foo' from 1 + 1); select SUBSTRING('foo' FROM 2 FOR 1); select left('foo', 2); +select LEFT('foo', 123); select RIGHT('bar', 1); +select right('bar', 123); select ltrim(' foo'); select RTRIM(' foo '); select trim(TRAILING 'x' FROM 'xxfooxx');