summaryrefslogtreecommitdiff
path: root/mysql-test/include
diff options
context:
space:
mode:
authorunknown <mskold@mysql.com>2005-03-07 10:21:38 +0100
committerunknown <mskold@mysql.com>2005-03-07 10:21:38 +0100
commit8e8dfe43db45875306d06d5c1d882c86a68b6b3a (patch)
treeb06b6684ff4122901b911545b8f54f0d438e308e /mysql-test/include
parentae81d53048643da4b110c936eaec0a895af06219 (diff)
downloadmariadb-git-8e8dfe43db45875306d06d5c1d882c86a68b6b3a.tar.gz
Fix for Bug #8753 Invalid schema object version after dropping index
Diffstat (limited to 'mysql-test/include')
-rw-r--r--mysql-test/include/have_multi_ndb.inc28
1 files changed, 28 insertions, 0 deletions
diff --git a/mysql-test/include/have_multi_ndb.inc b/mysql-test/include/have_multi_ndb.inc
new file mode 100644
index 00000000000..ec1a93311fb
--- /dev/null
+++ b/mysql-test/include/have_multi_ndb.inc
@@ -0,0 +1,28 @@
+# 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;
+disable_query_log;
+--disable_warnings
+drop table if exists t1, t2;
+--enable_warnings
+flush tables;
+@r/have_ndb.require show variables like "have_ndbcluster";
+# @r/server_id.require show variables like "server_id";
+enable_query_log;
+
+# Check that server2 has NDB support
+connection server2;
+disable_query_log;
+--disable_warnings
+drop table if exists t1, t2;
+--enable_warnings
+flush tables;
+@r/have_ndb.require show variables like "have_ndbcluster";
+# @r/server_id1.require show variables like "server_id";
+enable_query_log;
+
+# Set the default connection to 'server1'
+connection server1;