summaryrefslogtreecommitdiff
path: root/mysql-test/t/cast.test
diff options
context:
space:
mode:
authorChaithra Gopalareddy <chaithra.gopalareddy@oracle.com>2013-01-31 07:06:30 +0530
committerChaithra Gopalareddy <chaithra.gopalareddy@oracle.com>2013-01-31 07:06:30 +0530
commitdbd25312fea9cabf6542fb938d9b163114cab0fd (patch)
tree1f2823b8fb0a8f32272d481872e4c058ae82e5d0 /mysql-test/t/cast.test
parentd92a7cb76a6d7c9b53334152abfa8ee93e8fd171 (diff)
parente1ee9581cb4a4cac085d0ad6eedadb73de187deb (diff)
downloadmariadb-git-dbd25312fea9cabf6542fb938d9b163114cab0fd.tar.gz
Bug#14096619: UNABLE TO RESTORE DATABASE DUMP
Backport of fix for Bug#13581962 mysql-test/r/cast.result: Added test result for Bug#13581962,Bug#14096619 mysql-test/r/ctype_utf8mb4.result: Added test result for Bug#13581962,Bug#14096619 mysql-test/t/cast.test: Added test case for Bug#13581962,Bug#14096619 mysql-test/t/ctype_utf8mb4.test: Added test case for Bug#13581962,Bug#14096619 sql/item_func.h: limit max length by MY_INT64_NUM_DECIMAL_DIGITS
Diffstat (limited to 'mysql-test/t/cast.test')
-rw-r--r--mysql-test/t/cast.test13
1 files changed, 13 insertions, 0 deletions
diff --git a/mysql-test/t/cast.test b/mysql-test/t/cast.test
index 3ba684a9b25..150ab9b4dd8 100644
--- a/mysql-test/t/cast.test
+++ b/mysql-test/t/cast.test
@@ -307,4 +307,17 @@ WHERE CAST(a as BINARY)=x'62736D697468'
DROP TABLE t1;
+--echo #
+--echo # Bug#13581962 HIGH MEMORY USAGE ATTEMPT, THEN CRASH WITH
+--echo # LONGTEXT, UNION, USER VARIABLE
+--echo # Bug#14096619 UNABLE TO RESTORE DATABASE DUMP
+--echo #
+
+CREATE TABLE t1 AS SELECT CONCAT(CAST(REPEAT('9', 1000) AS SIGNED)),
+ CONCAT(CAST(REPEAT('9', 1000) AS UNSIGNED));
+SHOW CREATE TABLE t1;
+DROP TABLE t1;
+
+--echo # End of test for Bug#13581962, Bug#14096619
+
--echo End of 5.1 tests