~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/mysql.result

  • Committer: Brian Aker
  • Date: 2008-10-18 23:38:34 UTC
  • mto: (492.3.21 drizzle-clean-code)
  • mto: This revision was merged to the branch mainline in revision 530.
  • Revision ID: brian@tangent.org-20081018233834-z98ewdwcx2tanxno
Adding back more tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
drop table if exists t1;
2
2
create table t1(a int);
3
3
insert into t1 values(1);
4
 
ERROR at line 9: DELIMITER must be followed by a 'delimiter' character or string
 
4
ERROR: DELIMITER must be followed by a 'delimiter' character or string
5
5
 
6
6
Test default delimiter ;
7
7
a
61
61
test
62
62
unlock tables;
63
63
drop table t1;
64
 
+----------------------+------------+--------+
65
 
| concat('>',col1,'<') | col2       | col3   |
66
 
+----------------------+------------+--------+
67
 
| >a   <               | b          | 123421 | 
68
 
| >a   <               | 0123456789 |      4 | 
69
 
| >abcd<               |            |      4 | 
70
 
+----------------------+------------+--------+
71
64
+-------------------+
72
65
| __tañgè Ñãmé      |
73
66
+-------------------+
90
83
i       j       k
91
84
NULL    1       NULL
92
85
Field   Type    Null    Key     Default Extra
93
 
i       int(11) YES             NULL    
94
 
j       int(11) NO              NULL    
95
 
k       int(11) YES             NULL    
 
86
i       int     YES             NULL    
 
87
j       int     NO              NULL    
 
88
k       int     YES             NULL    
96
89
+------+---+------+
97
90
| i    | j | k    |
98
91
+------+---+------+
99
92
| NULL | 1 | NULL | 
100
93
+------+---+------+
101
 
+-------+---------+------+-----+---------+-------+
102
 
| Field | Type    | Null | Key | Default | Extra |
103
 
+-------+---------+------+-----+---------+-------+
104
 
| i     | int(11) | YES  |     | NULL    |       | 
105
 
| j     | int(11) | NO   |     | NULL    |       | 
106
 
| k     | int(11) | YES  |     | NULL    |       | 
107
 
+-------+---------+------+-----+---------+-------+
 
94
+-------+------+------+-----+---------+-------+
 
95
| Field | Type | Null | Key | Default | Extra |
 
96
+-------+------+------+-----+---------+-------+
 
97
| i     | int  | YES  |     | NULL    |       | 
 
98
| j     | int  | NO   |     | NULL    |       | 
 
99
| k     | int  | YES  |     | NULL    |       | 
 
100
+-------+------+------+-----+---------+-------+
108
101
i       s1
109
102
1       x
110
103
2       NULL
111
 
3       
 
104
3        
112
105
+------+------+
113
106
| i    | s1   |
114
107
+------+------+
125
118
+-------------+
126
119
create table t1(a int, b varchar(255), c int);
127
120
Field   Type    Null    Key     Default Extra
128
 
a       int(11) YES             NULL    
 
121
a       int     YES             NULL    
129
122
b       varchar(255)    YES             NULL    
130
 
c       int(11) YES             NULL    
 
123
c       int     YES             NULL    
131
124
Field   Type    Null    Key     Default Extra
132
 
a       int(11) YES             NULL    
 
125
a       int     YES             NULL    
133
126
b       varchar(255)    YES             NULL    
134
 
c       int(11) YES             NULL    
 
127
c       int     YES             NULL    
135
128
drop table t1;
136
129
1
137
130
1
138
 
ERROR 1064 (42000) at line 3: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
139
 
ERROR at line 1: USE must be followed by a database name
140
 
\
141
 
\\
142
 
';
143
 
';
 
131
ERROR 1064 (42000) at line 4: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
 
132
ERROR: USE must be followed by a database name
144
133
create table t17583 (a int);
145
134
insert into t17583 (a) values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
146
135
insert into t17583 select a from t17583;
156
145
drop table t17583;
157
146
Test connect without db- or host-name => reconnect
158
147
Test connect with dbname only => new dbname, old hostname
159
 
ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'connecttest' at line 1
 
148
ERROR 1064 (42000) at line 2: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'connecttest' at line 1
160
149
Test connect with _invalid_ dbname only => new invalid dbname, old hostname
161
 
ERROR 1049 (42000) at line 1: Unknown database 'invalid'
162
 
ERROR 1049 (42000) at line 1: Unknown database 'invalid'
 
150
ERROR 1049 (42000): Unknown database 'invalid'
 
151
ERROR 1049 (42000): Unknown database 'invalid'
163
152
Test connect with dbname + hostname
164
153
Test connect with dbname + _invalid_ hostname
165
 
ERROR 2005 (HY000) at line 1: Unknown MySQL server host 'invalid_hostname' (errno)
166
 
ERROR 2005 (HY000) at line 1: Unknown MySQL server host 'invalid_hostname' (errno)
167
 
The commands reported in the bug report
168
 
ERROR 2005 (HY000) at line 1: Unknown MySQL server host 'cyril has found a bug :)XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' (errno)
169
 
Too long dbname
170
 
ERROR 1102 (42000) at line 1: Incorrect database name 'test_really_long_dbnamexxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
171
 
Too long hostname
172
 
ERROR 2005 (HY000) at line 1: Unknown MySQL server host 'cyrils_superlonghostnameXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' (errno)
173
 
1
174
 
1
175
 
ERROR at line 1: DELIMITER cannot contain a backslash character
176
 
ERROR at line 1: DELIMITER cannot contain a backslash character
177
 
1
178
 
1
179
 
1
180
 
1
181
 
This is a file starting with UTF8 BOM 0xEFBBBF
182
 
This is a file starting with UTF8 BOM 0xEFBBBF
 
154
1
 
155
1
183
156
End of 5.0 tests
184
 
WARNING: --server-arg option not supported in this configuration.
185
157
*************************** 1. row ***************************
186
158
1: 1
187
159
2: 2
378
350
+---+
379
351
| 1 | 
380
352
+---+
381
 
Warning (Code 1286): Unknown table engine 'nonexistent'
382
 
Warning (Code 1266): Using storage engine MyISAM for table 't2'
383
 
Warning (Code 1286): Unknown table engine 'nonexistent2'
384
 
Warning (Code 1266): Using storage engine MyISAM for table 't2'
385
 
Error (Code 1050): Table 't2' already exists
386
 
drop tables t1, t2;
387
353
End of tests