~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/mysql.result

  • Committer: Monty Taylor
  • Date: 2008-08-16 21:06:22 UTC
  • Revision ID: monty@inaugust.com-20080816210622-zpnn13unyinqzn72
Updated po files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
49
 
i       int     YES             NULL    
50
 
j       int     NO              NULL    
51
 
k       int     YES             NULL    
52
 
+------+---+------+
53
 
| i    | j | k    |
54
 
+------+---+------+
55
 
| NULL | 1 | NULL | 
56
 
+------+---+------+
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
 
+-------+------+------+-----+---------+-------+
64
 
i       s1
65
 
1       x
66
 
2       NULL
67
 
3        
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
84
 
a       int     YES             NULL    
85
 
b       varchar(255)    YES             NULL    
86
 
c       int     YES             NULL    
87
 
Field   Type    Null    Key     Default Extra
88
 
a       int     YES             NULL    
89
 
b       varchar(255)    YES             NULL    
90
 
c       int     YES             NULL    
91
 
drop table t1;
92
 
1
93
 
1
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;
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
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
117
 
End of 5.0 tests
118
 
End of tests