You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-01 06:46:55 +03:00
56 lines
1.9 KiB
Plaintext
56 lines
1.9 KiB
Plaintext
# -------------------------------------------------------------- #
|
|
# Test case migrated from regression test suite: bug3935.sql
|
|
#
|
|
# Author: Daniel Lee, daniel.lee@mariadb.com
|
|
# -------------------------------------------------------------- #
|
|
#
|
|
--source ../include/have_columnstore.inc
|
|
--source ../include/detect_maxscale.inc
|
|
|
|
#
|
|
USE tpch1;
|
|
#
|
|
--exec rm -f /tmp/bug3935_outfile.txt
|
|
|
|
select n_nationkey, n_name into outfile '/tmp/bug3935_outfile.txt'
|
|
FIELDS TERMINATED BY '|' LINES TERMINATED BY '/n' from nation;
|
|
--exec rm -f /tmp/bug3935_outfile.txt
|
|
|
|
select n_nationkey, n_name into outfile '/tmp/bug3935_outfile.txt'
|
|
FIELDS TERMINATED BY '|' LINES TERMINATED BY '/n' from nation;
|
|
--exec rm -f /tmp/bug3935_outfile.txt
|
|
|
|
select n_nationkey, n_name into outfile '/tmp/bug3935_outfile.txt'
|
|
FIELDS TERMINATED BY '|' OPTIONALLY ENCLOSED BY '"' LINES TERMINATED BY '/n'
|
|
from nation;
|
|
--exec rm -f /tmp/bug3935_outfile.txt
|
|
|
|
SELECT * INTO OUTFILE '/tmp/bug3935_outfile.txt' FIELDS TERMINATED BY ',' LINES TERMINATED BY '\n'
|
|
FROM (SELECT 'ID', 'Name' UNION (SELECT n_nationkey, n_name FROM nation ORDER BY n_name DESC)) t;
|
|
|
|
--exec rm -f /tmp/bug3935_outfile.txt
|
|
SELECT * INTO OUTFILE '/tmp/bug3935_outfile.txt' FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' LINES TERMINATED BY '\n'
|
|
FROM (SELECT 'ID', 'Name' UNION (SELECT n_nationkey, n_name FROM nation ORDER BY n_name DESC)) t;
|
|
|
|
--exec rm -f /tmp/bug3935_outfile.txt
|
|
|
|
SELECT *
|
|
INTO OUTFILE '/tmp/bug3935_outfile.txt'
|
|
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '\"'
|
|
LINES TERMINATED BY '\n'
|
|
FROM (SELECT 'ID', 'Name'
|
|
UNION
|
|
SELECT n_nationkey, n_name from nation) a;
|
|
--exec rm -f /tmp/bug3935_outfile.txt
|
|
|
|
SELECT a.*
|
|
INTO OUTFILE '/tmp/bug3935_outfile.txt'
|
|
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '\"'
|
|
LINES TERMINATED BY '\n'
|
|
FROM (SELECT 'ID', 'Name'
|
|
UNION
|
|
SELECT n_nationkey, n_name from nation order by 2 desc) a;
|
|
--exec rm -f /tmp/bug3935_outfile.txt
|
|
#
|
|
|