You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +03:00
Add test case
This commit is contained in:
committed by
Leonid Fedorov
parent
63b93c607d
commit
d02e2854ae
16
mysql-test/columnstore/bugfixes/mcol-5703.result
Normal file
16
mysql-test/columnstore/bugfixes/mcol-5703.result
Normal file
@ -0,0 +1,16 @@
|
||||
DROP DATABASE IF EXISTS mcol5703;
|
||||
CREATE DATABASE mcol5703;
|
||||
USE mcol5703;
|
||||
CREATE TABLE `doubles` (
|
||||
`a` int(11),
|
||||
`b` int(11)
|
||||
) ENGINE=Columnstore DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;
|
||||
INSERT INTO doubles VALUES (1, 2), (2, 4);
|
||||
SELECT a, b FROM doubles UNION VALUES (3, 6);
|
||||
ERROR 42000: The storage engine for the table doesn't support subquery with VALUES
|
||||
SELECT a, b FROM doubles UNION ALL VALUES (3, 6);
|
||||
ERROR 42000: The storage engine for the table doesn't support subquery with VALUES
|
||||
SELECT a, b FROM doubles UNION DISTINCT VALUES (3, 6);
|
||||
ERROR 42000: The storage engine for the table doesn't support subquery with VALUES
|
||||
DROP TABLE doubles;
|
||||
DROP DATABASE mcol5703;
|
26
mysql-test/columnstore/bugfixes/mcol-5703.test
Normal file
26
mysql-test/columnstore/bugfixes/mcol-5703.test
Normal file
@ -0,0 +1,26 @@
|
||||
--source ../include/have_columnstore.inc
|
||||
|
||||
--disable_warnings
|
||||
DROP DATABASE IF EXISTS mcol5703;
|
||||
--enable_warnings
|
||||
|
||||
CREATE DATABASE mcol5703;
|
||||
USE mcol5703;
|
||||
|
||||
|
||||
CREATE TABLE `doubles` (
|
||||
`a` int(11),
|
||||
`b` int(11)
|
||||
) ENGINE=Columnstore DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;
|
||||
INSERT INTO doubles VALUES (1, 2), (2, 4);
|
||||
|
||||
--ERROR 1178
|
||||
SELECT a, b FROM doubles UNION VALUES (3, 6);
|
||||
--ERROR 1178
|
||||
SELECT a, b FROM doubles UNION ALL VALUES (3, 6);
|
||||
--ERROR 1178
|
||||
SELECT a, b FROM doubles UNION DISTINCT VALUES (3, 6);
|
||||
|
||||
DROP TABLE doubles;
|
||||
DROP DATABASE mcol5703;
|
||||
|
Reference in New Issue
Block a user