summaryrefslogtreecommitdiff
path: root/storage/tokudb/mysql-test/tokudb_bugs/t/5951.test
diff options
context:
space:
mode:
Diffstat (limited to 'storage/tokudb/mysql-test/tokudb_bugs/t/5951.test')
-rw-r--r--storage/tokudb/mysql-test/tokudb_bugs/t/5951.test34
1 files changed, 34 insertions, 0 deletions
diff --git a/storage/tokudb/mysql-test/tokudb_bugs/t/5951.test b/storage/tokudb/mysql-test/tokudb_bugs/t/5951.test
new file mode 100644
index 00000000000..71cebe681b8
--- /dev/null
+++ b/storage/tokudb/mysql-test/tokudb_bugs/t/5951.test
@@ -0,0 +1,34 @@
+--source include/have_tokudb.inc
+#
+# Record inconsistency.
+#
+#
+SET DEFAULT_STORAGE_ENGINE = 'tokudb';
+
+--disable_warnings
+DROP TABLE IF EXISTS t1;
+--enable_warnings
+
+create table t1
+ (c01 bigint unsigned not null auto_increment primary key,
+ c02 bigint unsigned not null default 0,
+ c03 bigint unsigned not null default 0,
+ c04 bigint unsigned not null default 0,
+ c05 bigint unsigned not null default 0,
+ c06 bigint unsigned not null default 0,
+ c07 bigint unsigned not null default 0,
+ c08 bigint unsigned not null default 0,
+ c09 bigint unsigned not null default 0,
+ c10 bigint unsigned not null default 0)
+engine=tokudb;
+
+insert into t1 (c01) values (NULL);
+
+insert into t1 (c02,c03,c04,c05,c06,c07,c08,c09,c10) select c02,c03,c04,c05,c06,c07,c08,c09,c10 from t1;
+
+flush tables;
+
+select * from t1;
+# Final cleanup.
+DROP TABLE t1;
+