1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-22037: Add ability to skip content of some tables (work around for MDEV-20939)

--ignore-table-data parameter added.
This commit is contained in:
Oleksandr Byelkin
2020-03-19 15:02:09 +01:00
parent 1f7be88141
commit f9639c2d1a
4 changed files with 92 additions and 6 deletions

View File

@ -5628,3 +5628,22 @@ select count(*) from t2;
count(*)
2
drop tables t2, t1;
#
# MDEV-22037: Add ability to skip content of some tables
# (work around for MDEV-20939)
#
use mysql;
# check that all tables we need are not empty
select count(*) >= 1 from mysql.proc;
count(*) >= 1
1
select count(*) >= 1 from mysql.db;
count(*) >= 1
1
# for proc we have CREATE and INSERT for all other only CREATE
FOUND /INSERT INTO `proc`/ in MDEV-20939.sql
NOT FOUND /INSERT INTO `db`/ in MDEV-20939.sql
FOUND /CREATE TABLE `db`/ in MDEV-20939.sql
FOUND /CREATE TABLE `proc`/ in MDEV-20939.sql
use test;
# End of 10.1 tests