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

« back to all changes in this revision

Viewing changes to tests/t/insert_select.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:
89
89
select * from t1;
90
90
insert into t1 select t2.a from t1,t2;
91
91
select * from t1;
92
 
--error 1066
 
92
--error ER_NONUNIQ_TABLE
93
93
insert into t1 select * from t1,t1;
94
94
drop table t1,t2;
95
95
 
194
194
insert into t1 select t2.a from t2 group by t2.a on duplicate key update a= a + 10;
195
195
 
196
196
#Some error cases
197
 
--error 1052
 
197
--error ER_NON_UNIQ_ERROR
198
198
insert into t1 select t2.a from t2 on duplicate key update a= a + t2.b;
199
 
--error 1054
 
199
--error ER_BAD_FIELD_ERROR
200
200
insert into t1 select t2.a from t2 on duplicate key update t2.a= a + t2.b;
201
 
--error 1054
 
201
--error ER_BAD_FIELD_ERROR
202
202
insert into t1 select t2.a from t2 group by t2.a on duplicate key update a= t1.a + t2.b;
203
203
drop table t1,t2,t3;
204
204
 
218
218
create table t1(x int, y int);
219
219
create table t2(x int, z int);
220
220
insert into t1(x,y) select x,z from t2 on duplicate key update x=values(x);
221
 
--error 1054
 
221
--error ER_BAD_FIELD_ERROR
222
222
insert into t1(x,y) select x,z from t2 on duplicate key update x=values(z);
223
 
--error 1054
 
223
--error ER_BAD_FIELD_ERROR
224
224
insert into t1(x,y) select x,z from t2 on duplicate key update x=values(t2.x);
225
225
drop table t1,t2; 
226
226