~drizzle-pbxt/drizzle/drizzle-pbxt-2

« back to all changes in this revision

Viewing changes to tests/r/insert_update.result

  • Committer: Paul McCullagh
  • Date: 2009-11-10 14:18:39 UTC
  • mfrom: (1038.1.7 drizzle-pbxt-pre-merge)
  • Revision ID: paul.mccullagh@primebase.org-20091110141839-2j3k43b17ag6f605
Merged Drizzle trunk and PBXT 1.0.09

Show diffs side-by-side

added added

removed removed

Lines of Context:
169
169
8       9       60      NULL
170
170
DROP TABLE t1;
171
171
DROP TABLE t2;
172
 
create table t1 (a int not null unique) engine=myisam;
 
172
create table t1 (a int not null unique);
173
173
insert into t1 values (1),(2);
174
174
insert ignore into t1 select 1 on duplicate key update a=2;
175
175
select * from t1;
191
191
insert ignore into t1 select a from t1 on duplicate key update a=t1.a+1 ;
192
192
ERROR 23000: Column 't1.a' in field list is ambiguous
193
193
drop table t1;
194
 
CREATE TABLE t1 (
 
194
CREATE TEMPORARY TABLE t1 (
195
195
a BIGINT NOT NULL DEFAULT 0,
196
196
PRIMARY KEY  (a)
197
197
) ENGINE=MyISAM;
389
389
id      c1      cnt
390
390
1       0       3
391
391
2       2       1
392
 
DROP TABLE t1;
 
392
DROP TABLE t1,t2;
393
393
create table t1(f1 int primary key,
394
394
f2 timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP);
395
395
insert into t1(f1) values(1);