Test for left/right with cut size larger than input

This commit is contained in:
Ivan Blinkov 2018-12-14 14:45:45 +03:00
parent 2279058f0d
commit 9dca1e3ca2
2 changed files with 4 additions and 0 deletions

View File

@ -11,7 +11,9 @@ o
oo oo
o o
fo fo
foo
r r
bar
foo foo
foo foo
xxfoo xxfoo

View File

@ -13,7 +13,9 @@ select IF(3>2, 1, 0);
select substring('foo' from 1 + 1); select substring('foo' from 1 + 1);
select SUBSTRING('foo' FROM 2 FOR 1); select SUBSTRING('foo' FROM 2 FOR 1);
select left('foo', 2); select left('foo', 2);
select LEFT('foo', 123);
select RIGHT('bar', 1); select RIGHT('bar', 1);
select right('bar', 123);
select ltrim(' foo'); select ltrim(' foo');
select RTRIM(' foo '); select RTRIM(' foo ');
select trim(TRAILING 'x' FROM 'xxfooxx'); select trim(TRAILING 'x' FROM 'xxfooxx');