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

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
This commit is contained in:
unknown
2007-08-09 22:05:56 +05:00
parent 4144c0322d
commit 1c47af79da
3 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,6 @@
select count(*) from information_schema.columns;
count(*)
#
DROP TABLE IF EXISTS t1; DROP TABLE IF EXISTS t1;
CREATE LOGFILE GROUP lg1 CREATE LOGFILE GROUP lg1
ADD UNDOFILE 'undofile.dat' ADD UNDOFILE 'undofile.dat'

View File

@ -14,6 +14,12 @@
-- source include/have_ndb.inc -- 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 --disable_warnings
DROP TABLE IF EXISTS t1; DROP TABLE IF EXISTS t1;
--enable_warnings --enable_warnings

View File

@ -1750,7 +1750,7 @@ int open_table_from_share(THD *thd, TABLE_SHARE *share, const char *alias,
} }
#ifdef WITH_PARTITION_STORAGE_ENGINE #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 In this execution we must avoid calling thd->change_item_tree since