You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-29 08:21:15 +03:00
MCOL-4748 mtr mcs229_data_compression_type fails without --extern
This commit is contained in:
@ -4,6 +4,20 @@
|
||||
#
|
||||
-- source ../include/have_columnstore.inc
|
||||
|
||||
#
|
||||
# If the calpontsys database does not exist, let's create it.
|
||||
# It's possible if we're running mtr without --extern.
|
||||
#
|
||||
let $calpontsys_exits=`SELECT COUNT(*) FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='calpontsys' AND TABLE_NAME='syscolumn';`;
|
||||
--disable_query_log
|
||||
if (!$calpontsys_exits)
|
||||
{
|
||||
--exec $MYSQL < $MCS_SYSCATALOG_MYSQL_SQL
|
||||
use test;
|
||||
}
|
||||
--enable_query_log
|
||||
|
||||
|
||||
--disable_warnings
|
||||
DROP DATABASE IF EXISTS mcs229_db;
|
||||
--enable_warnings
|
||||
@ -37,3 +51,13 @@ SELECT `schema`, tablename, columnname, compressiontype FROM calpontsys.syscolum
|
||||
|
||||
# Clean UP
|
||||
DROP DATABASE mcs229_db;
|
||||
|
||||
|
||||
--disable_query_log
|
||||
if (!$calpontsys_exits)
|
||||
{
|
||||
drop table calpontsys.systable restrict;
|
||||
drop table calpontsys.syscolumn restrict;
|
||||
drop database calpontsys;
|
||||
}
|
||||
--enable_query_log
|
||||
|
Reference in New Issue
Block a user