~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/mysql.test

  • Committer: Brian Aker
  • Date: 2009-05-15 17:06:35 UTC
  • mto: This revision was merged to the branch mainline in revision 1023.
  • Revision ID: brian@gaz-20090515170635-croy1u63a3gqdn9n
Dead convert functions for character sets.

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
49
51
#
50
52
# Bug#17939 Wrong table format when using UTF8 strings
51
53
#
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
 
54
--exec $MYSQL --table -e "SELECT 'John Doe' as '__tañgè Ñãmé'" 2>&1
 
55
--exec $MYSQL --table -e "SELECT '__tañgè Ñãmé' as 'John Doe'" 2>&1
54
56
 
55
57
#
56
58
# Bug#18265 -- mysql client: No longer right-justifies numeric columns
57
59
#
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;"
 
60
--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
61
 
60
62
#
61
63
# "DESCRIBE" commands may return strange NULLness flags.
62
64
#
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;"
 
65
--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;"
 
66
--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
67
 
66
68
#
67
69
# Bug#19564: mysql displays NULL instead of space
83
85
--exec $MYSQL test -e "desc t1\g"
84
86
drop table t1;
85
87
 
86
 
--disable_parsing
 
88
#--disable_parsing
87
89
#
88
90
# Bug#21042     mysql client segfaults on importing a mysqldump export
89
91
#
187
189
--exec $MYSQL test -e "connect invalid" 2>&1
188
190
 
189
191
--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
 
192
#--exec $MYSQL test -e "\r test localhost" 2>&1
 
193
#--exec $MYSQL test -e "connect test localhost" 2>&1
192
194
 
193
195
--echo Test connect with dbname + _invalid_ hostname
194
196
# Mask the errno of the error message
250
252
#
251
253
 
252
254
--disable_query_log
253
 
--exec $MYSQL test -e "show status" 2>&1 > /dev/null
 
255
#--exec $MYSQL test -e "show status" 2>&1 > /dev/null
254
256
--exec $MYSQL --help 2>&1 > /dev/null
255
257
--exec $MYSQL --version 2>&1 > /dev/null
256
258
--enable_query_log
260
262
#
261
263
 
262
264
# allow error 7(invalid argument) since --pager does not always exist in mysql
263
 
--error 0,7
 
265
--error 0,1,7
264
266
--exec $MYSQL --pager="540bytelengthstringxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx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xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" -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
267
 
272
268
#
273
269
# Bug#29323 mysql client only accetps ANSI encoded files
284
280
# Bug#26780: patch to add auto vertical output option to the cli.
285
281
#
286
282
# 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;"
 
283
#--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
284
# Too short to wrap.
289
 
--exec $MYSQL test --auto-vertical-output --table -e "SELECT 1;"
 
285
#--exec $MYSQL test --auto-vertical-output --table -e "SELECT 1;"
290
286
 
291
287
--echo End of tests