summaryrefslogtreecommitdiff
path: root/mysql-test
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test')
-rw-r--r--mysql-test/r/insert_set.result6
-rw-r--r--mysql-test/t/insert_set.test10
2 files changed, 16 insertions, 0 deletions
diff --git a/mysql-test/r/insert_set.result b/mysql-test/r/insert_set.result
new file mode 100644
index 00000000000..438c2c95147
--- /dev/null
+++ b/mysql-test/r/insert_set.result
@@ -0,0 +1,6 @@
+drop database if exists a;
+create database a;
+use a;
+create table b (c int);
+insert into a.b set a.b.c = '1';
+drop database a;
diff --git a/mysql-test/t/insert_set.test b/mysql-test/t/insert_set.test
new file mode 100644
index 00000000000..41d20eaefdb
--- /dev/null
+++ b/mysql-test/t/insert_set.test
@@ -0,0 +1,10 @@
+#
+# Test of mysqld crash with fully qualified column names
+#
+
+drop database if exists a;
+create database a;
+use a;
+create table b (c int);
+insert into a.b set a.b.c = '1';
+drop database a;