diff --git a/mysql-test/suite/json/r/type_document_innodb.result b/mysql-test/suite/json/r/type_document_innodb.result index f3f7caa9f688..e943acece6e0 100644 --- a/mysql-test/suite/json/r/type_document_innodb.result +++ b/mysql-test/suite/json/r/type_document_innodb.result @@ -255,5 +255,11 @@ SET @@global.allow_document_type = @start_allow_document_type; SELECT @@global.allow_document_type; @@global.allow_document_type 1 +checksum table t_big; +Table Checksum +test.t_big 3679544945 +checksum table t_big; +Table Checksum +test.t_big 3679544945 drop table t, t1, t2, t3, t_big, t_big2; include/rpl_end.inc diff --git a/mysql-test/suite/json/t/type_document_innodb.test b/mysql-test/suite/json/t/type_document_innodb.test index 57bd9acba082..f246a6ef614f 100644 --- a/mysql-test/suite/json/t/type_document_innodb.test +++ b/mysql-test/suite/json/t/type_document_innodb.test @@ -221,6 +221,12 @@ alter table t3 modify column s document; SET @@global.allow_document_type = @start_allow_document_type; SELECT @@global.allow_document_type; +checksum table t_big; +connection slave; +# Should be same as that on master +checksum table t_big; + +connection master; drop table t, t1, t2, t3, t_big, t_big2; --source include/rpl_end.inc diff --git a/sql/sql_table.cc b/sql/sql_table.cc index 26e6a43892d7..34e3a644cdb5 100644 --- a/sql/sql_table.cc +++ b/sql/sql_table.cc @@ -9697,7 +9697,7 @@ bool mysql_checksum_table(THD *thd, TABLE_LIST *tables, /* BLOB and VARCHAR have pointers in their field, we must convert - to string; GEOMETRY is implemented on top of BLOB. + to string; GEOMETRY and DOCUMENT are implemented on top of BLOB. BIT may store its data among NULL bits, convert as well. */ switch (f->type()) { @@ -9705,6 +9705,7 @@ bool mysql_checksum_table(THD *thd, TABLE_LIST *tables, case MYSQL_TYPE_VARCHAR: case MYSQL_TYPE_GEOMETRY: case MYSQL_TYPE_BIT: + case MYSQL_TYPE_DOCUMENT: { String tmp; f->val_str(&tmp);