1
drop table if exists t1;
2
create table t1(a int);
3
insert into t1 values(1);
5
Test delimiter : from command line
9
Test delimiter :; from command line
13
Test 'go' command(vertical output) G
14
*************************** 1. row ***************************
21
create table t1(a int);
37
+------+------+---------------------------+
39
+------+------+---------------------------+
41
| NULL | NULL | <-----------------------> |
42
| NULL | NULL | <----- |
43
| NULL | NULL | Τη γλώσσα |
44
| NULL | NULL | ᛖᚴ ᚷᛖᛏ |
45
+------+------+---------------------------+
48
Field Type Null Key Default Extra
57
+-------+------+------+-----+---------+-------+
58
| Field | Type | Null | Key | Default | Extra |
59
+-------+------+------+-----+---------+-------+
60
| i | int | YES | | NULL | |
61
| j | int | NO | | NULL | |
62
| k | int | YES | | NULL | |
63
+-------+------+------+-----+---------+-------+
82
create table t1(a int, b varchar(255), c int);
83
Field Type Null Key Default Extra
85
b varchar(255) YES NULL
87
Field Type Null Key Default Extra
89
b varchar(255) YES NULL
94
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
95
ERROR: USE must be followed by a database name
96
create table t17583 (a int);
97
insert into t17583 (a) values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
98
insert into t17583 select a from t17583;
99
insert into t17583 select a from t17583;
100
insert into t17583 select a from t17583;
101
insert into t17583 select a from t17583;
102
insert into t17583 select a from t17583;
103
insert into t17583 select a from t17583;
104
insert into t17583 select a from t17583;
105
select count(*) from t17583;
109
Test connect without db- or host-name => reconnect
110
Test connect with dbname only => new dbname, old hostname
111
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
112
Test connect with _invalid_ dbname only => new invalid dbname, old hostname
113
ERROR 1049 (42000): Unknown database 'invalid'
114
ERROR 1049 (42000): Unknown database 'invalid'
115
Test connect with dbname + hostname
116
Test connect with dbname + _invalid_ hostname