~drizzle-trunk/drizzle/development

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
+-------------------+
22
| __tañgè Ñãmé      |
23
+-------------------+
24
| John Doe          | 
25
+-------------------+
26
+-------------------+
27
| John Doe          |
28
+-------------------+
29
| __tañgè Ñãmé      | 
30
+-------------------+
31
+------+------+---------------------------+
32
| i    | j    | k                         |
33
+------+------+---------------------------+
34
|    1 | NULL | NULL                      | 
35
| NULL | NULL | <-----------------------> | 
36
| NULL | NULL | <-----                    | 
37
| NULL | NULL | Τη γλώσσα                 | 
38
| NULL | NULL | ᛖᚴ ᚷᛖᛏ                    | 
39
+------+------+---------------------------+
40
i	j	k
41
NULL	1	NULL
42
Field	Type	Null	Key	Default	Extra
520.1.12 by Brian Aker
Adding back more tests.
43
i	int	YES		NULL	
44
j	int	NO		NULL	
45
k	int	YES		NULL	
1 by brian
clean slate
46
+------+---+------+
47
| i    | j | k    |
48
+------+---+------+
49
| NULL | 1 | NULL | 
50
+------+---+------+
520.1.12 by Brian Aker
Adding back more tests.
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
+-------+------+------+-----+---------+-------+
1 by brian
clean slate
58
i	s1
59
1	x
60
2	NULL
520.1.12 by Brian Aker
Adding back more tests.
61
3	 
1 by brian
clean slate
62
+------+------+
63
| i    | s1   |
64
+------+------+
65
|    1 | x    | 
66
|    2 | NULL | 
67
|    3 |      | 
68
+------+------+
69
unhex('zz')
70
NULL
71
+-------------+
72
| unhex('zz') |
73
+-------------+
74
| NULL        | 
75
+-------------+
76
create table t1(a int, b varchar(255), c int);
77
Field	Type	Null	Key	Default	Extra
520.1.12 by Brian Aker
Adding back more tests.
78
a	int	YES		NULL	
1 by brian
clean slate
79
b	varchar(255)	YES		NULL	
520.1.12 by Brian Aker
Adding back more tests.
80
c	int	YES		NULL	
1 by brian
clean slate
81
Field	Type	Null	Key	Default	Extra
520.1.12 by Brian Aker
Adding back more tests.
82
a	int	YES		NULL	
1 by brian
clean slate
83
b	varchar(255)	YES		NULL	
520.1.12 by Brian Aker
Adding back more tests.
84
c	int	YES		NULL	
1 by brian
clean slate
85
drop table t1;
86
1
87
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.
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
520.1.12 by Brian Aker
Adding back more tests.
89
ERROR: USE must be followed by a database name
1 by brian
clean slate
90
create table t17583 (a int);
91
insert into t17583 (a) values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
92
insert into t17583 select a from t17583;
93
insert into t17583 select a from t17583;
94
insert into t17583 select a from t17583;
95
insert into t17583 select a from t17583;
96
insert into t17583 select a from t17583;
97
insert into t17583 select a from t17583;
98
insert into t17583 select a from t17583;
99
select count(*) from t17583;
100
count(*)
101
1280
102
drop table t17583;
103
Test connect without db- or host-name => reconnect
104
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.
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
1 by brian
clean slate
106
Test connect with _invalid_ dbname only => new invalid dbname, old hostname
520.1.12 by Brian Aker
Adding back more tests.
107
ERROR 1049 (42000): Unknown database 'invalid'
746 by Brian Aker
Merging in fixes by Eric
108
ERROR 1049 (42000): Unknown database 'invalid'
1 by brian
clean slate
109
Test connect with dbname + hostname
110
Test connect with dbname + _invalid_ hostname
111
End of 5.0 tests
112
End of tests