58
create table t1(a int);
64
+----------------------+------------+--------+
65
| concat('>',col1,'<') | col2 | col3 |
66
+----------------------+------------+--------+
68
| >a < | 0123456789 | 4 |
70
+----------------------+------------+--------+
71
21
+-------------------+
73
23
+-------------------+
92
42
Field Type Null Key Default Extra
96
46
+------+---+------+
98
48
+------+---+------+
99
49
| NULL | 1 | NULL |
100
50
+------+---+------+
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
+-------+---------+------+-----+---------+-------+
51
+-------+------+------+-----+---------+-------+
52
| Field | Type | Null | Key | Default | Extra |
53
+-------+------+------+-----+---------+-------+
54
| i | int | YES | | NULL | |
55
| j | int | NO | | NULL | |
56
| k | int | YES | | NULL | |
57
+-------+------+------+-----+---------+-------+
126
76
create table t1(a int, b varchar(255), c int);
127
77
Field Type Null Key Default Extra
129
79
b varchar(255) YES NULL
131
81
Field Type Null Key Default Extra
133
83
b varchar(255) YES NULL
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
88
ERROR 1064 (42000) at line 4: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near '' at line 1
89
ERROR: USE must be followed by a database name
144
90
create table t17583 (a int);
145
91
insert into t17583 (a) values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
146
92
insert into t17583 select a from t17583;
156
102
drop table t17583;
157
103
Test connect without db- or host-name => reconnect
158
104
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
105
ERROR 1064 (42000) at line 2: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'connecttest' at line 1
160
106
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'
107
ERROR 1049 (42000): Unknown database 'invalid'
108
ERROR 1049 (42000): Unknown database 'invalid'
163
109
Test connect with dbname + hostname
164
110
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)
170
ERROR 1102 (42000) at line 1: Incorrect database name 'test_really_long_dbnamexxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
172
ERROR 2005 (HY000) at line 1: Unknown MySQL server host 'cyrils_superlonghostnameXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' (errno)
175
ERROR at line 1: DELIMITER cannot contain a backslash character
176
ERROR at line 1: DELIMITER cannot contain a backslash character
181
This is a file starting with UTF8 BOM 0xEFBBBF
182
This is a file starting with UTF8 BOM 0xEFBBBF
184
WARNING: --server-arg option not supported in this configuration.
185
*************************** 1. row ***************************
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