~ubuntu-branches/ubuntu/trusty/drizzle/trusty

« back to all changes in this revision

Viewing changes to tests/r/mysql.result

  • Committer: Bazaar Package Importer
  • Author(s): Monty Taylor
  • Date: 2010-10-02 14:17:48 UTC
  • mfrom: (1.1.1 upstream)
  • mto: (2.1.17 sid)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20101002141748-m6vbfbfjhrw1153e
Tags: 2010.09.1802-1
* New upstream release.
* Removed pid-file argument hack.
* Updated GPL-2 address to be new address.
* Directly copy in drizzledump.1 since debian doesn't have sphinx 1.0 yet.
* Link to jquery from libjs-jquery. Add it as a depend.
* Add drizzled.8 symlink to the install 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
 
+-------------------+
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    Default Default_is_NULL On_Update
43
 
i       INTEGER TRUE            TRUE    
44
 
j       INTEGER FALSE           FALSE   
45
 
k       INTEGER TRUE            TRUE    
46
 
+------+---+------+
47
 
| i    | j | k    |
48
 
+------+---+------+
49
 
| NULL | 1 | NULL | 
50
 
+------+---+------+
51
 
+-------+---------+-------+---------+-----------------+-----------+
52
 
| Field | Type    | Null  | Default | Default_is_NULL | On_Update |
53
 
+-------+---------+-------+---------+-----------------+-----------+
54
 
| i     | INTEGER | TRUE  |         | TRUE            |           | 
55
 
| j     | INTEGER | FALSE |         | FALSE           |           | 
56
 
| k     | INTEGER | TRUE  |         | TRUE            |           | 
57
 
+-------+---------+-------+---------+-----------------+-----------+
58
 
i       s1
59
 
1       x
60
 
2       NULL
61
 
3        
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    Default Default_is_NULL On_Update
78
 
a       INTEGER TRUE            TRUE    
79
 
b       VARCHAR TRUE            TRUE    
80
 
c       INTEGER TRUE            TRUE    
81
 
Field   Type    Null    Default Default_is_NULL On_Update
82
 
a       INTEGER TRUE            TRUE    
83
 
b       VARCHAR TRUE            TRUE    
84
 
c       INTEGER TRUE            TRUE    
85
 
drop table t1;
86
 
1
87
 
1
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
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
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
106
 
Test connect with _invalid_ dbname only => new invalid dbname, old hostname
107
 
ERROR 1049 (42000): Unknown database 'invalid'
108
 
ERROR 1049 (42000): Unknown database 'invalid'
109
 
Test connect with dbname + hostname
110
 
Test connect with dbname + _invalid_ hostname
111
 
End of 5.0 tests
112
 
End of tests