mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-04-26 11:48:52 +03:00
We incorrectly identified TEXT columns from external tables as BLOB. Alexander Barkov suggested a way to discriminate them which I implemented here.
43 lines
1.2 KiB
Plaintext
43 lines
1.2 KiB
Plaintext
-- source include/have_innodb.inc
|
|
-- source ../include/have_columnstore.inc
|
|
|
|
--disable_warnings
|
|
DROP DATABASE IF EXISTS MCOL5056;
|
|
--enable_warnings
|
|
|
|
CREATE DATABASE MCOL5056;
|
|
|
|
USE MCOL5056;
|
|
|
|
if (!$MASTER_MYPORT)
|
|
{
|
|
# Running with --extern
|
|
let $MASTER_MYPORT=`SELECT @@port`;
|
|
}
|
|
|
|
--exec $MCS_MCSSETCONFIG CrossEngineSupport User 'cejuser'
|
|
--exec $MCS_MCSSETCONFIG CrossEngineSupport Password 'Vagrant1|0000001'
|
|
--exec $MCS_MCSSETCONFIG CrossEngineSupport Port $MASTER_MYPORT
|
|
--disable_warnings
|
|
CREATE USER IF NOT EXISTS'cejuser'@'localhost' IDENTIFIED BY 'Vagrant1|0000001';
|
|
--enable_warnings
|
|
GRANT ALL PRIVILEGES ON *.* TO 'cejuser'@'localhost';
|
|
FLUSH PRIVILEGES;
|
|
|
|
CREATE TABLE foo5 (a TEXT);
|
|
CREATE TABLE bar5 (b TEXT) ENGINE=COLUMNSTORE;
|
|
# no data, just the fact that we can run this SELECT without errors.
|
|
SELECT * FROM foo5, bar5 WHERE foo5.a=bar5.b;
|
|
|
|
CREATE TABLE t3i (ai TEXT, bi INTEGER, ci TEXT);
|
|
CREATE TABLE t3c (ac TEXT, bc INTEGER, cc TEXT) ENGINE=COLUMNSTORE;
|
|
SELECT * FROM t3i, t3c WHERE t3i.ai=t3c.ac;
|
|
SELECT * FROM t3i, t3c WHERE t3i.ci=t3c.ac;
|
|
SELECT * FROM t3i, t3c WHERE t3i.ai=t3c.cc;
|
|
SELECT * FROM t3i, t3c WHERE t3i.ci=t3c.cc;
|
|
|
|
|
|
DROP USER 'cejuser'@'localhost';
|
|
DROP DATABASE MCOL5056;
|
|
|