mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
5d66c3565a
exists t1,t2,t3' Bug #34245 Test ndb_binlog_multi fails for 'CREATE TABLE' Bug #34246 Test rpl_ndb_transaction fails with 'Failed to create 'mysql/ndb_apply_status' Tests cases didn't wait for cluster to come up due to a typo in have_multi_ndb.inc. mysql-test/include/have_multi_ndb.inc: SHOW TABLES is case-sensitive in the pattern to LIKE. mysql-test/suite/ndb/t/disabled.def: Enabling tests. mysql-test/suite/rpl_ndb/t/rpl_ndb_transaction.test: Adding include of have_debug since test requires that. sql/sql_repl.cc: Replacing 'return' with 'DBUG_RETURN' in debug-traced function.
52 lines
1.6 KiB
PHP
52 lines
1.6 KiB
PHP
# Setup connections to both MySQL Servers connected to the cluster
|
|
connect (server1,127.0.0.1,root,,test,$MASTER_MYPORT,);
|
|
connect (server2,127.0.0.1,root,,test,$MASTER_MYPORT1,);
|
|
|
|
# Check that server1 has NDB support
|
|
connection server1;
|
|
let $engines_table= query_get_value(SHOW TABLES FROM information_schema LIKE 'ENGINES', Tables_in_information_schema (ENGINES), 1);
|
|
disable_query_log;
|
|
if (`SELECT 1 FROM dual WHERE '$engines_table' = 'engines'`)
|
|
{
|
|
--require r/true.require
|
|
SELECT (support = 'YES' or support = 'DEFAULT' or support = 'ENABLED') as `TRUE` FROM information_schema.engines WHERE engine = 'ndbcluster';
|
|
--source include/ndb_not_readonly.inc
|
|
}
|
|
enable_query_log;
|
|
|
|
# Check that server2 has NDB support
|
|
connection server2;
|
|
let $engines_table= query_get_value(SHOW TABLES FROM information_schema LIKE 'ENGINES', Tables_in_information_schema (ENGINES), 1);
|
|
disable_query_log;
|
|
if (`SELECT 1 FROM dual WHERE '$engines_table' = 'engines'`)
|
|
{
|
|
--require r/true.require
|
|
SELECT (support = 'YES' or support = 'DEFAULT' or support = 'ENABLED') as `TRUE` FROM information_schema.engines WHERE engine = 'ndbcluster';
|
|
--source include/ndb_not_readonly.inc
|
|
}
|
|
enable_query_log;
|
|
|
|
# cleanup
|
|
|
|
connection server1;
|
|
disable_query_log;
|
|
disable_warnings;
|
|
--error 0,1051
|
|
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9,t10;
|
|
flush tables;
|
|
flush status;
|
|
enable_warnings;
|
|
enable_query_log;
|
|
|
|
connection server2;
|
|
disable_query_log;
|
|
disable_warnings;
|
|
--error 0,1051
|
|
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9,t10;
|
|
flush tables;
|
|
flush status;
|
|
enable_warnings;
|
|
enable_query_log;
|
|
|
|
# Set the default connection
|
|
connection server1;
|