~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/mysql.test

  • Committer: Brian Aker
  • Date: 2008-10-06 06:47:29 UTC
  • Revision ID: brian@tangent.org-20081006064729-2i9mhjkzyvow9xsm
Remove uint.

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
 
# 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"
 
17
--exec $MYSQL test 2>&1 < "./t/mysql_delimiter.sql"
20
18
 
21
19
--disable_query_log
22
20
# Test delimiter : supplied on the command line
35
33
drop table t1;
36
34
 
37
35
#
 
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
#
38
45
# Bug#16859 -- NULLs in columns must not truncate data as if a C-language "string".
39
46
#
40
47
#--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
42
49
#
43
50
# Bug#17939 Wrong table format when using UTF8 strings
44
51
#
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
 
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
47
54
 
48
55
#
49
56
# Bug#18265 -- mysql client: No longer right-justifies numeric columns
50
57
#
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;"
 
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;"
52
59
 
53
60
#
54
61
# "DESCRIBE" commands may return strange NULLness flags.
55
62
#
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;"
 
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;"
58
65
 
59
66
#
60
67
# Bug#19564: mysql displays NULL instead of space
76
83
--exec $MYSQL test -e "desc t1\g"
77
84
drop table t1;
78
85
 
79
 
#--disable_parsing
 
86
--disable_parsing
80
87
#
81
88
# Bug#21042     mysql client segfaults on importing a mysqldump export
82
89
#
180
187
--exec $MYSQL test -e "connect invalid" 2>&1
181
188
 
182
189
--echo Test connect with dbname + hostname
183
 
#--exec $MYSQL test -e "\r test localhost" 2>&1
184
 
#--exec $MYSQL test -e "connect test localhost" 2>&1
 
190
--exec $MYSQL test -e "\r test localhost" 2>&1
 
191
--exec $MYSQL test -e "connect test localhost" 2>&1
185
192
 
186
193
--echo Test connect with dbname + _invalid_ hostname
187
194
# Mask the errno of the error message
243
250
#
244
251
 
245
252
--disable_query_log
246
 
#--exec $MYSQL test -e "show status" 2>&1 > /dev/null
 
253
--exec $MYSQL test -e "show status" 2>&1 > /dev/null
247
254
--exec $MYSQL --help 2>&1 > /dev/null
248
255
--exec $MYSQL --version 2>&1 > /dev/null
249
256
--enable_query_log
253
260
#
254
261
 
255
262
# allow error 7(invalid argument) since --pager does not always exist in mysql
256
 
--error 0,1,7
 
263
--error 0,7
257
264
--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;"
258
271
 
259
272
#
260
273
# Bug#29323 mysql client only accetps ANSI encoded files
271
284
# Bug#26780: patch to add auto vertical output option to the cli.
272
285
#
273
286
# Make this wide enough that it will wrap almost everywhere.
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;"
 
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;"
275
288
# Too short to wrap.
276
 
#--exec $MYSQL test --auto-vertical-output --table -e "SELECT 1;"
 
289
--exec $MYSQL test --auto-vertical-output --table -e "SELECT 1;"
277
290
 
278
291
--echo End of tests