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

« back to all changes in this revision

Viewing changes to tests/t/errors.test

  • 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:
5
5
--disable_warnings
6
6
drop table if exists t1;
7
7
--enable_warnings
8
 
--error 1146
 
8
--error ER_NO_SUCH_TABLE
9
9
insert into t1 values(1);
10
 
--error 1146
 
10
--error ER_NO_SUCH_TABLE
11
11
delete from t1;
12
 
--error 1146
 
12
--error ER_NO_SUCH_TABLE
13
13
update t1 set a=1;
14
14
create table t1 (a int);
15
 
--error 1054
 
15
--error ER_BAD_FIELD_ERROR
16
16
select count(test.t1.b) from t1;
17
 
--error 1054
 
17
--error ER_BAD_FIELD_ERROR
18
18
select count(not_existing_database.t1) from t1;
19
 
--error 1054
 
19
--error ER_BAD_FIELD_ERROR
20
20
select count(not_existing_database.t1.a) from t1;
21
 
--error 1044,1146
 
21
--error ER_DBACCESS_DENIED_ERROR, ER_NO_SUCH_TABLE
22
22
select count(not_existing_database.t1.a) from not_existing_database.t1;
23
 
--error 1054
 
23
--error ER_BAD_FIELD_ERROR
24
24
select 1 from t1 order by 2;
25
 
--error 1054
 
25
--error ER_BAD_FIELD_ERROR
26
26
select 1 from t1 group by 2;
27
 
--error 1054
 
27
--error ER_BAD_FIELD_ERROR
28
28
select 1 from t1 order by t1.b;
29
 
--error 1054
 
29
--error ER_BAD_FIELD_ERROR
30
30
select count(*),b from t1;
31
31
drop table t1;
32
32
 
35
35
#
36
36
# Bug #6080: Error message for a field with a display width that is too long
37
37
#
38
 
--error 1064
 
38
--error ER_PARSE_ERROR
39
39
create table t1 (a int(256));
40
 
--error 1074
 
40
--error ER_TOO_BIG_FIELDLENGTH
41
41
create table t1 (a varchar(66000));
42
42
 
43
43
#