summaryrefslogtreecommitdiffstats
path: root/mysql-test/suite/innodb/t/innodb_bug40565.test
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/suite/innodb/t/innodb_bug40565.test')
-rw-r--r--mysql-test/suite/innodb/t/innodb_bug40565.test10
1 files changed, 10 insertions, 0 deletions
diff --git a/mysql-test/suite/innodb/t/innodb_bug40565.test b/mysql-test/suite/innodb/t/innodb_bug40565.test
new file mode 100644
index 00000000..a5d14346
--- /dev/null
+++ b/mysql-test/suite/innodb/t/innodb_bug40565.test
@@ -0,0 +1,10 @@
+--source include/have_innodb.inc
+# Bug #40565 Update Query Results in "1 Row Affected" But Should Be "Zero Rows"
+
+create table bug40565(value decimal(4,2)) engine=innodb;
+insert into bug40565 values (1), (null);
+--enable_info
+update bug40565 set value=NULL;
+update bug40565 set value=NULL;
+--disable_info
+drop table bug40565;