~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/derived.test

  • Committer: Brian Aker
  • Date: 2011-01-26 00:31:58 UTC
  • mto: (2115.1.1 drizzle-build)
  • mto: This revision was merged to the branch mainline in revision 2116.
  • Revision ID: brian@tangent.org-20110126003158-wciipy0fd4i6tcxt
Next pass through of tests (remove number, use label for error).

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
--enable_warnings
5
5
 
6
6
select * from (select 2) b;
 
7
--error ER_BAD_FIELD_ERROR
7
8
SELECT 1 as a FROM (SELECT 1 UNION SELECT a) b;
 
9
--error ER_BAD_FIELD_ERROR
8
10
SELECT 1 as a FROM (SELECT a UNION SELECT 1) b;
9
11
CREATE TABLE t1 (a int not null, b char (10) not null);
10
12
insert into t1 values(1,'a'),(2,'b'),(3,'c'),(3,'c');
105
105
#
106
106
create table t1 (a int);
107
107
insert into t1 values (1),(2),(3);
 
108
--error ER_PARSE_ERROR
108
109
delete from (select * from t1);
 
110
--error ER_PARSE_ERROR
109
111
insert into  (select * from t1) values (5);
110
112
drop table t1;
111
113