~drizzle-trunk/drizzle/development

1 by brian
clean slate
1
--disable_warnings
2
DROP TABLE IF EXISTS t1, t2;
3
--enable_warnings
4
5
--echo #
6
--echo # Bug#31663 FIELDS TERMINATED BY special character
7
--echo #
8
9
CREATE TABLE t1 (i1 int, i2 int, c1 VARCHAR(256), c2 VARCHAR(256));
10
INSERT INTO t1 VALUES (101, 202, '-r-', '=raker=');
11
12
--let $fields=*
13
--let $clauses=FIELDS TERMINATED BY 'raker'
673.3.8 by Stewart Smith
fix outfile_loaddata test for drizzle.
14
--echo # $clauses, error:
1 by brian
clean slate
15
1819.2.2 by patrick crews
Adjustments to tests to deal with the name changes. Also fixed passed/failed reporting post-run in test-run.pl
16
--replace_result $DRIZZLETEST_VARDIR DRIZZLETEST_VARDIR
673.3.8 by Stewart Smith
fix outfile_loaddata test for drizzle.
17
--error ER_AMBIGUOUS_FIELD_TERM
1819.2.2 by patrick crews
Adjustments to tests to deal with the name changes. Also fixed passed/failed reporting post-run in test-run.pl
18
--eval SELECT $fields INTO OUTFILE '$DRIZZLETEST_VARDIR/tmp/bug31663.txt' $clauses FROM t1
1 by brian
clean slate
19
20
--let $fields=i1, i2
21
--let $clauses=FIELDS TERMINATED BY 'r'
22
--echo # Only numeric fields, $clauses, no warnings:
23
1819.2.2 by patrick crews
Adjustments to tests to deal with the name changes. Also fixed passed/failed reporting post-run in test-run.pl
24
--replace_result $DRIZZLETEST_VARDIR DRIZZLETEST_VARDIR
25
--eval SELECT $fields INTO OUTFILE '$DRIZZLETEST_VARDIR/tmp/bug31663.txt' $clauses FROM t1
26
--replace_result $DRIZZLETEST_VARDIR DRIZZLETEST_VARDIR
27
--eval SELECT LOAD_FILE('$DRIZZLETEST_VARDIR/tmp/bug31663.txt')
1 by brian
clean slate
28
--eval CREATE TABLE t2 SELECT $fields FROM t1
1819.2.2 by patrick crews
Adjustments to tests to deal with the name changes. Also fixed passed/failed reporting post-run in test-run.pl
29
--replace_result $DRIZZLETEST_VARDIR DRIZZLETEST_VARDIR
30
--eval LOAD DATA INFILE '$DRIZZLETEST_VARDIR/tmp/bug31663.txt' INTO TABLE t2 $clauses
1 by brian
clean slate
31
--eval SELECT $fields FROM t2
1819.2.2 by patrick crews
Adjustments to tests to deal with the name changes. Also fixed passed/failed reporting post-run in test-run.pl
32
--remove_file $DRIZZLETEST_VARDIR/tmp/bug31663.txt
1 by brian
clean slate
33
DROP TABLE t2;
34
35
--let $fields=*
36
--let $clauses=FIELDS TERMINATED BY '0'
37
--echo # $clauses, warning:
38
1819.2.2 by patrick crews
Adjustments to tests to deal with the name changes. Also fixed passed/failed reporting post-run in test-run.pl
39
--replace_result $DRIZZLETEST_VARDIR DRIZZLETEST_VARDIR
673.3.8 by Stewart Smith
fix outfile_loaddata test for drizzle.
40
--error ER_AMBIGUOUS_FIELD_TERM
1819.2.2 by patrick crews
Adjustments to tests to deal with the name changes. Also fixed passed/failed reporting post-run in test-run.pl
41
--eval SELECT $fields INTO OUTFILE '$DRIZZLETEST_VARDIR/tmp/bug31663.txt' $clauses FROM t1
1 by brian
clean slate
42
43
--let $fields=*
44
--let $clauses=FIELDS OPTIONALLY ENCLOSED BY '"' TERMINATED BY '0'
45
--echo # $clauses, warning:
46
1819.2.2 by patrick crews
Adjustments to tests to deal with the name changes. Also fixed passed/failed reporting post-run in test-run.pl
47
--replace_result $DRIZZLETEST_VARDIR DRIZZLETEST_VARDIR
673.3.8 by Stewart Smith
fix outfile_loaddata test for drizzle.
48
--error ER_AMBIGUOUS_FIELD_TERM
1819.2.2 by patrick crews
Adjustments to tests to deal with the name changes. Also fixed passed/failed reporting post-run in test-run.pl
49
--eval SELECT $fields INTO OUTFILE '$DRIZZLETEST_VARDIR/tmp/bug31663.txt' $clauses FROM t1
673.3.8 by Stewart Smith
fix outfile_loaddata test for drizzle.
50
51
# Drizzle bug (not filed, fixed): assert on file not found
1 by brian
clean slate
52
--eval CREATE TABLE t2 SELECT $fields FROM t1
1819.2.2 by patrick crews
Adjustments to tests to deal with the name changes. Also fixed passed/failed reporting post-run in test-run.pl
53
--replace_result $DRIZZLETEST_VARDIR DRIZZLETEST_VARDIR
673.3.8 by Stewart Smith
fix outfile_loaddata test for drizzle.
54
--error ER_FILE_NOT_FOUND
1819.2.2 by patrick crews
Adjustments to tests to deal with the name changes. Also fixed passed/failed reporting post-run in test-run.pl
55
--eval LOAD DATA INFILE '$DRIZZLETEST_VARDIR/tmp/bug31663.txt' INTO TABLE t2 $clauses
1 by brian
clean slate
56
DROP TABLE t2;
57
58
--let $fields=c1, c2
59
--let $clauses=FIELDS OPTIONALLY ENCLOSED BY '"' TERMINATED BY '0'
60
--echo # Only string fields, $clauses, no warnings:
61
1819.2.2 by patrick crews
Adjustments to tests to deal with the name changes. Also fixed passed/failed reporting post-run in test-run.pl
62
--replace_result $DRIZZLETEST_VARDIR DRIZZLETEST_VARDIR
63
--eval SELECT $fields INTO OUTFILE '$DRIZZLETEST_VARDIR/tmp/bug31663.txt' $clauses FROM t1
64
--replace_result $DRIZZLETEST_VARDIR DRIZZLETEST_VARDIR
65
--eval SELECT LOAD_FILE('$DRIZZLETEST_VARDIR/tmp/bug31663.txt')
1 by brian
clean slate
66
--eval CREATE TABLE t2 SELECT $fields FROM t1
1819.2.2 by patrick crews
Adjustments to tests to deal with the name changes. Also fixed passed/failed reporting post-run in test-run.pl
67
--replace_result $DRIZZLETEST_VARDIR DRIZZLETEST_VARDIR
68
--eval LOAD DATA INFILE '$DRIZZLETEST_VARDIR/tmp/bug31663.txt' INTO TABLE t2 $clauses
1 by brian
clean slate
69
--eval SELECT $fields FROM t2
1819.2.2 by patrick crews
Adjustments to tests to deal with the name changes. Also fixed passed/failed reporting post-run in test-run.pl
70
--remove_file $DRIZZLETEST_VARDIR/tmp/bug31663.txt
1 by brian
clean slate
71
DROP TABLE t2;
72
73
DROP TABLE t1;
74
75
--echo #
76
--echo # Bug#32533: SELECT INTO OUTFILE never escapes multibyte character
77
--echo #
78
673.3.8 by Stewart Smith
fix outfile_loaddata test for drizzle.
79
# Disabled due to  https://bugs.launchpad.net/mysql-server/+bug/308457
80
81
#CREATE TABLE t1 (c1 VARCHAR(256));
82
#INSERT INTO t1 (c1) VALUES ('☠');
83
#SELECT HEX(c1) FROM t1;
84
1819.2.2 by patrick crews
Adjustments to tests to deal with the name changes. Also fixed passed/failed reporting post-run in test-run.pl
85
#--let $file=$DRIZZLETEST_VARDIR/tmp/bug32533.txt
673.3.8 by Stewart Smith
fix outfile_loaddata test for drizzle.
86
1819.2.2 by patrick crews
Adjustments to tests to deal with the name changes. Also fixed passed/failed reporting post-run in test-run.pl
87
#--replace_result $DRIZZLETEST_VARDIR DRIZZLETEST_VARDIR
673.3.8 by Stewart Smith
fix outfile_loaddata test for drizzle.
88
#--eval SELECT * INTO OUTFILE '$file' FIELDS ENCLOSED BY '☢' FROM t1
89
#TRUNCATE t1;
90
1819.2.2 by patrick crews
Adjustments to tests to deal with the name changes. Also fixed passed/failed reporting post-run in test-run.pl
91
#--replace_result $DRIZZLETEST_VARDIR DRIZZLETEST_VARDIR
673.3.8 by Stewart Smith
fix outfile_loaddata test for drizzle.
92
#--eval SELECT HEX(LOAD_FILE('$file'))
93
1819.2.2 by patrick crews
Adjustments to tests to deal with the name changes. Also fixed passed/failed reporting post-run in test-run.pl
94
#--replace_result $DRIZZLETEST_VARDIR DRIZZLETEST_VARDIR
673.3.8 by Stewart Smith
fix outfile_loaddata test for drizzle.
95
#--eval LOAD DATA INFILE '$file' INTO TABLE t1 FIELDS ENCLOSED BY '☢'
96
#SELECT HEX(c1) FROM t1;
97
98
#--remove_file $file
99
#DROP TABLE t1;
1 by brian
clean slate
100
101
--echo # End of 5.0 tests.