summaryrefslogtreecommitdiff
path: root/mysql-test/main/row-checksum.test
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2022-05-03 10:59:54 +0200
committerOleksandr Byelkin <sanja@mariadb.com>2022-05-03 10:59:54 +0200
commit9614fde1aac6ffa4745804342ff70a96b2418e30 (patch)
treed53f4578ce0a6b5cf30f3eef854d50c16fbabcee /mysql-test/main/row-checksum.test
parent182b8a29e7a1a0f0fbffeed39518c2c9dc026e13 (diff)
parent70555454b4c224e85383d482411961c7f2eba2e2 (diff)
downloadmariadb-git-9614fde1aac6ffa4745804342ff70a96b2418e30.tar.gz
Merge branch '10.2' into 10.3
Diffstat (limited to 'mysql-test/main/row-checksum.test')
-rw-r--r--mysql-test/main/row-checksum.test35
1 files changed, 29 insertions, 6 deletions
diff --git a/mysql-test/main/row-checksum.test b/mysql-test/main/row-checksum.test
index 5acfda45f75..3b510abba84 100644
--- a/mysql-test/main/row-checksum.test
+++ b/mysql-test/main/row-checksum.test
@@ -2,12 +2,8 @@
# Test checksum
#
--- source include/have_innodb.inc
--- source include/have_maria.inc
-
---disable_warnings
-drop table if exists t1;
---enable_warnings
+--source include/have_innodb.inc
+--source include/have_maria.inc
create table t1 (a int null, v varchar(100)) engine=myisam checksum=0;
insert into t1 values(null, null), (1, "hello");
@@ -76,4 +72,31 @@ CHECKSUM TABLE t1 EXTENDED;
drop table t1;
+--echo #
--echo # End of 5.5 tests
+--echo #
+
+--echo #
+--echo # MDEV-28020 CHECKSUM TABLE calculates different checksums
+--echo #
+create table t1 ( a int, b int as (a) virtual, c text) engine=myisam checksum=1;
+insert ignore t1 values (1,2,'foo'),(2,3,'bar');
+checksum table t1 extended;
+checksum table t1;
+drop table t1;
+
+create table t1 ( a int, b int as (a) virtual, c text, key(b)) engine=myisam checksum=1;
+insert ignore t1 values (1,2,'foo'),(2,3,'bar');
+checksum table t1 extended;
+checksum table t1;
+drop table t1;
+
+create table t1 ( a int, b int as (a) stored, c text) engine=myisam checksum=1;
+insert ignore t1 values (1,2,'foo'),(2,3,'bar');
+checksum table t1 extended;
+checksum table t1;
+drop table t1;
+
+--echo #
+--echo # End of 10.2 tests
+--echo #