~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/mysql.test

pandora-build v0.72 - Moved remaining hard-coded tests into pandora-build
macros.
Add PANDORA_DRIZZLE_BUILD to run the extra checks that drizzle needs that 
plugins would also need to run so we can just use that macro in generated
external plugin builds.
Added support to register_plugins for external plugin building.
Renamed register_plugins.py to pandora-plugin.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
insert into t1 values(1);
15
15
 
16
16
# Test delimiters
17
 
--exec $MYSQL test 2>&1 < "./t/mysql_delimiter.sql"
 
17
# This breaks vpath builds - and I don't care enough about it to fix
 
18
# drizzletest. We can re-enable this in the new test system
 
19
#--exec $MYSQL test 2>&1 < "$DRIZZLE_TEST_DIR/t/mysql_delimiter.sql"
18
20
 
19
21
--disable_query_log
20
22
# Test delimiter : supplied on the command line
33
35
drop table t1;
34
36
 
35
37
#
36
 
# BUG9998 - MySQL client hangs on USE "database"
37
 
#
38
 
create table t1(a int);
39
 
lock tables t1 write;
40
 
--exec $MYSQL -e "use test; select database();"
41
 
unlock tables;
42
 
drop table t1;
43
 
 
44
 
#
45
38
# Bug#16859 -- NULLs in columns must not truncate data as if a C-language "string".
46
39
#
47
40
#--exec $MYSQL -t test -e "create table t1 (col1 binary(4), col2 varchar(10), col3 int); insert into t1 values ('a', 'b', 123421),('a ', '0123456789', 4), ('abcd', '', 4); select concat('>',col1,'<'), col2, col3 from t1; drop table t1;" 2>&1
49
42
#
50
43
# Bug#17939 Wrong table format when using UTF8 strings
51
44
#
52
 
--exec $MYSQL --default-character-set=utf8 --table -e "SELECT 'John Doe' as '__tañgè Ñãmé'" 2>&1
53
 
--exec $MYSQL --default-character-set=utf8 --table -e "SELECT '__tañgè Ñãmé' as 'John Doe'" 2>&1
 
45
--exec $MYSQL --table -e "SELECT 'John Doe' as '__tañgè Ñãmé'" 2>&1
 
46
--exec $MYSQL --table -e "SELECT '__tañgè Ñãmé' as 'John Doe'" 2>&1
54
47
 
55
48
#
56
49
# Bug#18265 -- mysql client: No longer right-justifies numeric columns
57
50
#
58
 
--exec $MYSQL -t --default-character-set utf8 test -e "create table t1 (i int, j int, k char(25) charset utf8); insert into t1 (i) values (1); insert into t1 (k) values ('<----------------------->'); insert into t1 (k) values ('<-----'); insert into t1 (k) values ('Τη γλώσσα'); insert into t1 (k) values ('ᛖᚴ ᚷᛖᛏ'); select * from t1; DROP TABLE t1;"
 
51
--exec $MYSQL -t test -e "create table t1 (i int, j int, k char(25)); insert into t1 (i) values (1); insert into t1 (k) values ('<----------------------->'); insert into t1 (k) values ('<-----'); insert into t1 (k) values ('Τη γλώσσα'); insert into t1 (k) values ('ᛖᚴ ᚷᛖᛏ'); select * from t1; DROP TABLE t1;"
59
52
 
60
53
#
61
54
# "DESCRIBE" commands may return strange NULLness flags.
62
55
#
63
 
--exec $MYSQL --default-character-set utf8 test -e "create table t1 (i int, j int not null, k int); insert into t1 values (null, 1, null); select * from t1; describe t1; drop table t1;"
64
 
--exec $MYSQL -t --default-character-set utf8 test -e "create table t1 (i int, j int not null, k int); insert into t1 values (null, 1, null); select * from t1; describe t1; drop table t1;"
 
56
--exec $MYSQL test -e "create table t1 (i int, j int not null, k int); insert into t1 values (null, 1, null); select * from t1; describe t1; drop table t1;"
 
57
--exec $MYSQL -t test -e "create table t1 (i int, j int not null, k int); insert into t1 values (null, 1, null); select * from t1; describe t1; drop table t1;"
65
58
 
66
59
#
67
60
# Bug#19564: mysql displays NULL instead of space
83
76
--exec $MYSQL test -e "desc t1\g"
84
77
drop table t1;
85
78
 
86
 
--disable_parsing
 
79
#--disable_parsing
87
80
#
88
81
# Bug#21042     mysql client segfaults on importing a mysqldump export
89
82
#
187
180
--exec $MYSQL test -e "connect invalid" 2>&1
188
181
 
189
182
--echo Test connect with dbname + hostname
190
 
--exec $MYSQL test -e "\r test localhost" 2>&1
191
 
--exec $MYSQL test -e "connect test localhost" 2>&1
 
183
#--exec $MYSQL test -e "\r test localhost" 2>&1
 
184
#--exec $MYSQL test -e "connect test localhost" 2>&1
192
185
 
193
186
--echo Test connect with dbname + _invalid_ hostname
194
187
# Mask the errno of the error message
250
243
#
251
244
 
252
245
--disable_query_log
253
 
--exec $MYSQL test -e "show status" 2>&1 > /dev/null
 
246
#--exec $MYSQL test -e "show status" 2>&1 > /dev/null
254
247
--exec $MYSQL --help 2>&1 > /dev/null
255
248
--exec $MYSQL --version 2>&1 > /dev/null
256
249
--enable_query_log
260
253
#
261
254
 
262
255
# allow error 7(invalid argument) since --pager does not always exist in mysql
263
 
--error 0,7
 
256
--error 0,1,7
264
257
--exec $MYSQL --pager="540bytelengthstringxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" -e "select 1" > /dev/null 2>&1
265
 
--exec $MYSQL --character-sets-dir="540bytelengthstringxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" -e "select 1" 2>&1
266
 
 
267
 
#
268
 
# bug #30164: Using client side macro inside server side comments generates broken queries
269
 
#
270
 
--exec $MYSQL test -e "/*! \C latin1 */ select 1;"
271
258
 
272
259
#
273
260
# Bug#29323 mysql client only accetps ANSI encoded files
284
271
# Bug#26780: patch to add auto vertical output option to the cli.
285
272
#
286
273
# Make this wide enough that it will wrap almost everywhere.
287
 
--exec $MYSQL test --auto-vertical-output --table -e "SELECT 1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0;"
 
274
#--exec $MYSQL test --auto-vertical-output --table -e "SELECT 1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0;"
288
275
# Too short to wrap.
289
 
--exec $MYSQL test --auto-vertical-output --table -e "SELECT 1;"
 
276
#--exec $MYSQL test --auto-vertical-output --table -e "SELECT 1;"
290
277
 
291
278
--echo End of tests