mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-11 05:29:30 +00:00
Fix schema tests for mySQL 5.5 changes
This commit is contained in:
@@ -130,8 +130,9 @@ SKIP: {
|
|||||||
# Test simple, unfiltered get_db_itr().
|
# Test simple, unfiltered get_db_itr().
|
||||||
# ########################################################################
|
# ########################################################################
|
||||||
test_so(
|
test_so(
|
||||||
result => $sandbox_version ge '5.1' ? "$out/all-dbs-tbls.txt"
|
result => $sandbox_version ge '5.5' ? "$out/all-dbs-tbls.txt"
|
||||||
: "$out/all-dbs-tbls-5.0.txt",
|
: $sandbox_version ge '5.1' ? "$out/all-dbs-tbls-5.1.txt"
|
||||||
|
: "$out/all-dbs-tbls-5.0.txt",
|
||||||
test_name => "Iterate all schema objects with dbh",
|
test_name => "Iterate all schema objects with dbh",
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -190,7 +191,7 @@ SKIP: {
|
|||||||
# Filter by engines. This also tests that --engines is case-insensitive
|
# Filter by engines. This also tests that --engines is case-insensitive
|
||||||
test_so(
|
test_so(
|
||||||
filters => ['-d', 'd1,d2,d3', '--engines', 'INNODB'],
|
filters => ['-d', 'd1,d2,d3', '--engines', 'INNODB'],
|
||||||
result => "d1.t2 ",
|
result => ($sandbox_version ge '5.5' ? 'd1.t2 d2.t1 ' : "d1.t2 "),
|
||||||
test_name => '--engines',
|
test_name => '--engines',
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@@ -31,6 +31,7 @@ CREATE TABLE `user` (
|
|||||||
`Create_user_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
|
`Create_user_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
|
||||||
`Event_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
|
`Event_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
|
||||||
`Trigger_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
|
`Trigger_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
|
||||||
|
`Create_tablespace_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
|
||||||
`ssl_type` enum('','ANY','X509','SPECIFIED') CHARACTER SET utf8 NOT NULL DEFAULT '',
|
`ssl_type` enum('','ANY','X509','SPECIFIED') CHARACTER SET utf8 NOT NULL DEFAULT '',
|
||||||
`ssl_cipher` blob NOT NULL,
|
`ssl_cipher` blob NOT NULL,
|
||||||
`x509_issuer` blob NOT NULL,
|
`x509_issuer` blob NOT NULL,
|
||||||
@@ -39,6 +40,8 @@ CREATE TABLE `user` (
|
|||||||
`max_updates` int(11) unsigned NOT NULL DEFAULT '0',
|
`max_updates` int(11) unsigned NOT NULL DEFAULT '0',
|
||||||
`max_connections` int(11) unsigned NOT NULL DEFAULT '0',
|
`max_connections` int(11) unsigned NOT NULL DEFAULT '0',
|
||||||
`max_user_connections` int(11) unsigned NOT NULL DEFAULT '0',
|
`max_user_connections` int(11) unsigned NOT NULL DEFAULT '0',
|
||||||
|
`plugin` char(60) COLLATE utf8_bin NOT NULL DEFAULT '',
|
||||||
|
`authentication_string` text COLLATE utf8_bin NOT NULL,
|
||||||
PRIMARY KEY (`Host`,`User`)
|
PRIMARY KEY (`Host`,`User`)
|
||||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Users and global privileges'
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Users and global privileges'
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user