1
by brian
clean slate |
1 |
drop table if exists t1; |
2 |
create table t1 (`a` blob); |
|
3 |
insert into t1 values("hello world"),("Hello mars"),(NULL); |
|
4 |
select load_file(concat(@tmpdir,"/outfile-test.1")); |
|
5 |
load_file(concat(@tmpdir,"/outfile-test.1")) |
|
1786.3.2
by Monty Taylor
Cleaned up the initial pass at this. It's not perfect, but it does work. |
6 |
NULL
|
1
by brian
clean slate |
7 |
select load_file(concat(@tmpdir,"/outfile-test.2")); |
8 |
load_file(concat(@tmpdir,"/outfile-test.2")) |
|
1786.3.2
by Monty Taylor
Cleaned up the initial pass at this. It's not perfect, but it does work. |
9 |
NULL
|
1
by brian
clean slate |
10 |
select load_file(concat(@tmpdir,"/outfile-test.3")); |
11 |
load_file(concat(@tmpdir,"/outfile-test.3")) |
|
1786.3.2
by Monty Taylor
Cleaned up the initial pass at this. It's not perfect, but it does work. |
12 |
NULL
|
13 |
ERROR HY000: File '../../tmp/outfile-test.1' already exists |
|
14 |
ERROR HY000: File '../../tmp/outfile-test.2' already exists |
|
15 |
ERROR HY000: File '../../tmp/outfile-test.3' already exists |
|
1
by brian
clean slate |
16 |
select load_file(concat(@tmpdir,"/outfile-test.not-exist")); |
17 |
load_file(concat(@tmpdir,"/outfile-test.not-exist")) |
|
18 |
NULL
|
|
19 |
drop table t1; |
|
20 |
select load_file(concat(@tmpdir,"/outfile-test.4")); |
|
21 |
load_file(concat(@tmpdir,"/outfile-test.4")) |
|
1786.3.2
by Monty Taylor
Cleaned up the initial pass at this. It's not perfect, but it does work. |
22 |
NULL
|
1
by brian
clean slate |
23 |
CREATE TABLE t1 (a INT); |
24 |
EXPLAIN
|
|
25 |
SELECT * |
|
1786.3.2
by Monty Taylor
Cleaned up the initial pass at this. It's not perfect, but it does work. |
26 |
INTO OUTFILE '../../tmp/t1.txt' |
1
by brian
clean slate |
27 |
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' LINES TERMINATED BY '\r\n' |
28 |
FROM t1; |
|
29 |
id select_type table type possible_keys key key_len ref rows Extra |
|
673.3.7
by Stewart Smith
fix outfile test |
30 |
1 SIMPLE t1 ALL NULL NULL NULL NULL 1 |
1
by brian
clean slate |
31 |
DROP TABLE t1; |
32 |
use test; |
|
33 |
create table t1(a int); |
|
319.1.1
by Grant Limberg
renamed all instances of MYSQL_ to DRIZZLE_ |
34 |
select * into outfile "DRIZZLE_TEST_DIR/outfile-test1" from t1; |
673.3.7
by Stewart Smith
fix outfile test |
35 |
ERROR HY000: The Drizzle server is running with the --secure-file-priv option so it cannot execute this statement |
1
by brian
clean slate |
36 |
drop table t1; |