summaryrefslogtreecommitdiff
path: root/mysql-test/t/insert.test
diff options
context:
space:
mode:
authorSergey Glukhov <Sergey.Glukhov@sun.com>2009-04-09 14:19:31 +0500
committerSergey Glukhov <Sergey.Glukhov@sun.com>2009-04-09 14:19:31 +0500
commit920abd58b2172ff39275e852924fa2dc41775f1c (patch)
tree9d9aa1b50ee3124c58fca06e76967949497654e2 /mysql-test/t/insert.test
parent16e078f56c25a6982a364554d2cda231a7c43d58 (diff)
downloadmariadb-git-920abd58b2172ff39275e852924fa2dc41775f1c.tar.gz
Bug#43833 Simple INSERT crashes the server
The crash happens due to wrong 'digits' variable value(0), 'digits' can not be 0, so the fix is use 1 as min allowed value. mysql-test/r/insert.result: test result mysql-test/t/insert.test: test case sql/field.cc: The crash happens due to wrong 'digits' variable value(0), 'digits' can not be 0, so the fix is use 1 as min allowed value.
Diffstat (limited to 'mysql-test/t/insert.test')
-rw-r--r--mysql-test/t/insert.test9
1 files changed, 9 insertions, 0 deletions
diff --git a/mysql-test/t/insert.test b/mysql-test/t/insert.test
index 0b5a12fa523..a1735c1a91f 100644
--- a/mysql-test/t/insert.test
+++ b/mysql-test/t/insert.test
@@ -454,5 +454,14 @@ SELECT * FROM t2;
DROP TABLE t1, t2;
+#
+# Bug#43833 Simple INSERT crashes the server
+#
+CREATE TABLE t1(f1 FLOAT);
+INSERT INTO t1 VALUES (1.23);
+CREATE TABLE t2(f1 CHAR(1));
+INSERT INTO t2 SELECT f1 FROM t1;
+DROP TABLE t1, t2;
+
--echo End of 5.0 tests.