1
by brian
clean slate |
1 |
drop table if exists t1;
|
2 |
create table t1(a int);
|
|
3 |
insert into t1 values(1);
|
|
4 |
_
|
|
5 |
Test delimiter : from command line
|
|
6 |
a
|
|
7 |
1
|
|
8 |
_
|
|
9 |
Test delimiter :; from command line
|
|
10 |
a
|
|
11 |
1
|
|
12 |
_
|
|
13 |
Test 'go' command(vertical output) G
|
|
14 |
*************************** 1. row ***************************
|
|
15 |
a: 1
|
|
16 |
_
|
|
17 |
Test 'go' command g
|
|
18 |
a
|
|
19 |
1
|
|
20 |
drop table t1;
|
|
21 |
create table t1(a int);
|
|
22 |
lock tables t1 write;
|
|
23 |
database()
|
|
24 |
test
|
|
25 |
unlock tables;
|
|
26 |
drop table t1;
|
|
27 |
+-------------------+
|
|
28 |
| __tañgè Ñãmé |
|
|
29 |
+-------------------+
|
|
30 |
| John Doe |
|
|
31 |
+-------------------+
|
|
32 |
+-------------------+
|
|
33 |
| John Doe |
|
|
34 |
+-------------------+
|
|
35 |
| __tañgè Ñãmé |
|
|
36 |
+-------------------+
|
|
37 |
+------+------+---------------------------+
|
|
38 |
| i | j | k |
|
|
39 |
+------+------+---------------------------+
|
|
40 |
| 1 | NULL | NULL |
|
|
41 |
| NULL | NULL | <-----------------------> |
|
|
42 |
| NULL | NULL | <----- |
|
|
43 |
| NULL | NULL | Τη γλώσσα |
|
|
44 |
| NULL | NULL | ᛖᚴ ᚷᛖᛏ |
|
|
45 |
+------+------+---------------------------+
|
|
46 |
i j k
|
|
47 |
NULL 1 NULL
|
|
48 |
Field Type Null Key Default Extra
|
|
520.1.12
by Brian Aker
Adding back more tests. |
49 |
i int YES NULL
|
50 |
j int NO NULL
|
|
51 |
k int YES NULL
|
|
1
by brian
clean slate |
52 |
+------+---+------+
|
53 |
| i | j | k |
|
|
54 |
+------+---+------+
|
|
55 |
| NULL | 1 | NULL |
|
|
56 |
+------+---+------+
|
|
520.1.12
by Brian Aker
Adding back more tests. |
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 |
+-------+------+------+-----+---------+-------+
|
|
1
by brian
clean slate |
64 |
i s1
|
65 |
1 x
|
|
66 |
2 NULL
|
|
520.1.12
by Brian Aker
Adding back more tests. |
67 |
3
|
1
by brian
clean slate |
68 |
+------+------+
|
69 |
| i | s1 |
|
|
70 |
+------+------+
|
|
71 |
| 1 | x |
|
|
72 |
| 2 | NULL |
|
|
73 |
| 3 | |
|
|
74 |
+------+------+
|
|
75 |
unhex('zz')
|
|
76 |
NULL
|
|
77 |
+-------------+
|
|
78 |
| unhex('zz') |
|
|
79 |
+-------------+
|
|
80 |
| NULL |
|
|
81 |
+-------------+
|
|
82 |
create table t1(a int, b varchar(255), c int);
|
|
83 |
Field Type Null Key Default Extra
|
|
520.1.12
by Brian Aker
Adding back more tests. |
84 |
a int YES NULL
|
1
by brian
clean slate |
85 |
b varchar(255) YES NULL
|
520.1.12
by Brian Aker
Adding back more tests. |
86 |
c int YES NULL
|
1
by brian
clean slate |
87 |
Field Type Null Key Default Extra
|
520.1.12
by Brian Aker
Adding back more tests. |
88 |
a int YES NULL
|
1
by brian
clean slate |
89 |
b varchar(255) YES NULL
|
520.1.12
by Brian Aker
Adding back more tests. |
90 |
c int YES NULL
|
1
by brian
clean slate |
91 |
drop table t1;
|
92 |
1
|
|
93 |
1
|
|
685.4.30
by Jay Pipes
Fixes mysql.test. Commented out executable commands which reference the test database, since we don't have one. |
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
|
520.1.12
by Brian Aker
Adding back more tests. |
95 |
ERROR: USE must be followed by a database name
|
1
by brian
clean slate |
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;
|
|
106 |
count(*)
|
|
107 |
1280
|
|
108 |
drop table t17583;
|
|
109 |
Test connect without db- or host-name => reconnect
|
|
110 |
Test connect with dbname only => new dbname, old hostname
|
|
685.4.30
by Jay Pipes
Fixes mysql.test. Commented out executable commands which reference the test database, since we don't have one. |
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
|
1
by brian
clean slate |
112 |
Test connect with _invalid_ dbname only => new invalid dbname, old hostname
|
520.1.12
by Brian Aker
Adding back more tests. |
113 |
ERROR 1049 (42000): Unknown database 'invalid'
|
746
by Brian Aker
Merging in fixes by Eric |
114 |
ERROR 1049 (42000): Unknown database 'invalid'
|
1
by brian
clean slate |
115 |
Test connect with dbname + hostname
|
116 |
Test connect with dbname + _invalid_ hostname
|
|
117 |
End of 5.0 tests
|
|
118 |
End of tests
|