summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <gluh@mysql.com/eagle.(none)>2007-08-09 22:05:56 +0500
committerunknown <gluh@mysql.com/eagle.(none)>2007-08-09 22:05:56 +0500
commit1c47af79da738cbba009d2801da0cfb8ee45a3da (patch)
treeac2e3c2efb02aff4ce23c126d60813ffeea734b9
parent4144c0322d4dbb56a1a20176690226bfdd6c7cdb (diff)
downloadmariadb-git-1c47af79da738cbba009d2801da0cfb8ee45a3da.tar.gz
Bug#30322 Server crashes on selecting from i_s.columns when cluster is running -regression
disable partition processing if we open frm file only mysql-test/suite/ndb/r/ndb_dd_basic.result: test result mysql-test/suite/ndb/t/ndb_dd_basic.test: test case sql/table.cc: disable partition processing if we open frm file only
-rw-r--r--mysql-test/suite/ndb/r/ndb_dd_basic.result3
-rw-r--r--mysql-test/suite/ndb/t/ndb_dd_basic.test6
-rw-r--r--sql/table.cc2
3 files changed, 10 insertions, 1 deletions
diff --git a/mysql-test/suite/ndb/r/ndb_dd_basic.result b/mysql-test/suite/ndb/r/ndb_dd_basic.result
index bc1762ce407..3daba0e7f3d 100644
--- a/mysql-test/suite/ndb/r/ndb_dd_basic.result
+++ b/mysql-test/suite/ndb/r/ndb_dd_basic.result
@@ -1,3 +1,6 @@
+select count(*) from information_schema.columns;
+count(*)
+#
DROP TABLE IF EXISTS t1;
CREATE LOGFILE GROUP lg1
ADD UNDOFILE 'undofile.dat'
diff --git a/mysql-test/suite/ndb/t/ndb_dd_basic.test b/mysql-test/suite/ndb/t/ndb_dd_basic.test
index 3acf4669868..8c83c2febe5 100644
--- a/mysql-test/suite/ndb/t/ndb_dd_basic.test
+++ b/mysql-test/suite/ndb/t/ndb_dd_basic.test
@@ -14,6 +14,12 @@
-- source include/have_ndb.inc
+#
+# Bug#30322 Server crashes on selecting from i_s.columns when cluster is running -regression
+#
+--replace_column 1 #
+select count(*) from information_schema.columns;
+
--disable_warnings
DROP TABLE IF EXISTS t1;
--enable_warnings
diff --git a/sql/table.cc b/sql/table.cc
index 12fffe1dde7..53f32355923 100644
--- a/sql/table.cc
+++ b/sql/table.cc
@@ -1750,7 +1750,7 @@ int open_table_from_share(THD *thd, TABLE_SHARE *share, const char *alias,
}
#ifdef WITH_PARTITION_STORAGE_ENGINE
- if (share->partition_info_len)
+ if (share->partition_info_len && outparam->file)
{
/*
In this execution we must avoid calling thd->change_item_tree since