mirror of
https://github.com/MariaDB/server.git
synced 2026-05-14 19:07:15 +02:00
BUG#21648 information_schema test fails --with-ndbcluster
make test work both with and without ndbcluster mysql-test/r/information_schema.result: fix test so that it passes --with-ndbcluster add conditions to ignore the table_schema='cluster' on some queries as different tables are in the cluster database if ndb is running or not. mysql-test/t/information_schema.test: ignore the 'cluster' database as results differ if --with-ndbcluster or without explictly use schema 'test' for bug7476 check.
This commit is contained in:
parent
b6479b3b38
commit
3106a0a5f8
2 changed files with 8 additions and 9 deletions
|
|
@ -37,7 +37,7 @@ create table t3(a int, KEY a_data (a));
|
|||
create table mysqltest.t4(a int);
|
||||
create table t5 (id int auto_increment primary key);
|
||||
insert into t5 values (10);
|
||||
create view v1 (c) as select table_name from information_schema.TABLES;
|
||||
create view v1 (c) as select table_name from information_schema.TABLES where table_schema!='cluster';
|
||||
select * from v1;
|
||||
|
||||
select c,table_name from v1
|
||||
|
|
@ -448,7 +448,7 @@ drop table t1, t2;
|
|||
#
|
||||
# Bug #7476: crash on SELECT * FROM INFORMATION_SCHEMA.TABLES
|
||||
#
|
||||
|
||||
use test;
|
||||
CREATE TABLE t_crashme ( f1 BIGINT);
|
||||
CREATE VIEW a1 (t_CRASHME) AS SELECT f1 FROM t_crashme GROUP BY f1;
|
||||
CREATE VIEW a2 AS SELECT t_CRASHME FROM a1;
|
||||
|
|
@ -462,7 +462,7 @@ while ($tab_count)
|
|||
--disable_result_log
|
||||
SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES;
|
||||
--enable_result_log
|
||||
SELECT count(*) FROM INFORMATION_SCHEMA.TABLES;
|
||||
SELECT count(*) FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test';
|
||||
let $tab_count= 65;
|
||||
while ($tab_count)
|
||||
{
|
||||
|
|
@ -528,7 +528,7 @@ flush privileges;
|
|||
# Bug #9404 information_schema: Weird error messages
|
||||
# with SELECT SUM() ... GROUP BY queries
|
||||
#
|
||||
SELECT table_schema, count(*) FROM information_schema.TABLES GROUP BY TABLE_SCHEMA;
|
||||
SELECT table_schema, count(*) FROM information_schema.TABLES where TABLE_SCHEMA!='cluster' GROUP BY TABLE_SCHEMA;
|
||||
|
||||
|
||||
#
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue