summaryrefslogtreecommitdiff
path: root/mysql-test/r/func_str.result
diff options
context:
space:
mode:
authorunknown <igor@olga.mysql.com>2007-06-17 11:35:14 -0700
committerunknown <igor@olga.mysql.com>2007-06-17 11:35:14 -0700
commit145696de540fb06f033ea5ee54eca0e14be3bdb0 (patch)
tree1b616e203a8d17a1857f75d2f248d6ce78ae43b6 /mysql-test/r/func_str.result
parent67988a75fc3030462d43c9625caa924bfc8c443d (diff)
parenta07b055b9ab75b54e9df33bb7634bde22543e8f1 (diff)
downloadmariadb-git-145696de540fb06f033ea5ee54eca0e14be3bdb0.tar.gz
Merge olga.mysql.com:/home/igor/mysql-5.0-opt
into olga.mysql.com:/home/igor/dev-opt/mysql-5.0-opt-bug27130 mysql-test/r/func_str.result: Manual merge mysql-test/t/func_str.test: Manual merge
Diffstat (limited to 'mysql-test/r/func_str.result')
-rw-r--r--mysql-test/r/func_str.result15
1 files changed, 15 insertions, 0 deletions
diff --git a/mysql-test/r/func_str.result b/mysql-test/r/func_str.result
index e79670b3f76..d22b184b9ec 100644
--- a/mysql-test/r/func_str.result
+++ b/mysql-test/r/func_str.result
@@ -2137,4 +2137,19 @@ id
3
4
DROP TABLE t1;
+SELECT SUBSTR('foo',1,0) FROM DUAL;
+SUBSTR('foo',1,0)
+
+SELECT SUBSTR('foo',1,CAST(0 AS SIGNED)) FROM DUAL;
+SUBSTR('foo',1,CAST(0 AS SIGNED))
+
+SELECT SUBSTR('foo',1,CAST(0 AS UNSIGNED)) FROM DUAL;
+SUBSTR('foo',1,CAST(0 AS UNSIGNED))
+
+CREATE TABLE t1 (a varchar(10), len int unsigned);
+INSERT INTO t1 VALUES ('bar', 2), ('foo', 0);
+SELECT SUBSTR(a,1,len) FROM t1;
+SUBSTR(a,1,len)
+ba
+DROP TABLE t1;
End of 5.0 tests