summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <Sinisa@sinisa.nasamreza.org>2004-03-13 21:22:55 +0200
committerunknown <Sinisa@sinisa.nasamreza.org>2004-03-13 21:22:55 +0200
commit8dd15d3173e5587e527fc4ef82f6f055f2daf0e2 (patch)
treeea8e031bb517917cd59de3e49f7d79f264c1e7a6
parentfe60928fe78b1bc10ca50271eda04021f1f0e488 (diff)
parent05b1020397c3aea694f9839a3c4f196d7260d721 (diff)
downloadmariadb-git-8dd15d3173e5587e527fc4ef82f6f055f2daf0e2.tar.gz
after merge fixes.
-rw-r--r--mysql-test/r/multi_update.result20
-rw-r--r--mysql-test/t/multi_update.test10
2 files changed, 15 insertions, 15 deletions
diff --git a/mysql-test/r/multi_update.result b/mysql-test/r/multi_update.result
index 12cb965f045..dd020aaf18c 100644
--- a/mysql-test/r/multi_update.result
+++ b/mysql-test/r/multi_update.result
@@ -386,17 +386,17 @@ SELECT * from t2;
a
1
DROP TABLE t1,t2;
-create table `t1` (`p_id` int(10) unsigned NOT NULL auto_increment, `p_code` varchar(20) NOT NULL default '', `p_active` tinyint(1) unsigned NOT NULL default '1', PRIMARY KEY (`p_id`) );
-create table `t2` (`c2_id` int(10) unsigned NULL auto_increment, `c2_p_id` int(10) unsigned NOT NULL default '0', `c2_note` text NOT NULL, `c2_active` tinyint(1) unsigned NOT NULL default '1', PRIMARY KEY (`c2_id`), KEY `c2_p_id` (`c2_p_id`) );
-insert into t1 values (0,'A01-Comp',1);
-insert into t1 values (0,'B01-Comp',1);
-insert into t2 values (0,1,'A Note',1);
+create table `t1` ( `p_id` int(10) unsigned NOT NULL auto_increment, `p_code` varchar(20) NOT NULL default '', `p_created` datetime NOT NULL default '0000-00-00 00:00:00', `p_active` tinyint(1) unsigned NOT NULL default '1', PRIMARY KEY (`p_id`) );
+create table `t2` ( `c2_id` int(10) unsigned NULL auto_increment, `c2_p_id` int(10) unsigned NOT NULL default '0', `c2_note` text NOT NULL, `c2_created` datetime NOT NULL default '0000-00-00 00:00:00', `c2_active` tinyint(1) unsigned NOT NULL default '1', PRIMARY KEY (`c2_id`), KEY `c2_p_id` (`c2_p_id`) );
+insert into t1 values (0,'A01-Comp',"2004-01-05 12:12:12",1);
+insert into t1 values (0,'B01-Comp',"2004-01-05 12:12:13",1);
+insert into t2 values (0,1,'A Note',"2004-01-05 12:12:14",1);
update t1 left join t2 on p_id = c2_p_id set c2_note = 'asdf-1' where p_id = 2;
select * from t1;
-p_id p_code p_active
-1 A01-Comp 1
-2 B01-Comp 1
+p_id p_code p_created p_active
+1 A01-Comp 2004-01-05 12:12:12 1
+2 B01-Comp 2004-01-05 12:12:13 1
select * from t2;
-c2_id c2_p_id c2_note c2_active
-1 1 A Note 1
+c2_id c2_p_id c2_note c2_created c2_active
+1 1 A Note 2004-01-05 12:12:14 1
drop table t1, t2;
diff --git a/mysql-test/t/multi_update.test b/mysql-test/t/multi_update.test
index 39ea136bde1..e4651df400f 100644
--- a/mysql-test/t/multi_update.test
+++ b/mysql-test/t/multi_update.test
@@ -330,11 +330,11 @@ DROP TABLE t1,t2;
# Test update with const tables
#
-create table `t1` (`p_id` int(10) unsigned NOT NULL auto_increment, `p_code` varchar(20) NOT NULL default '', `p_active` tinyint(1) unsigned NOT NULL default '1', PRIMARY KEY (`p_id`) );
-create table `t2` (`c2_id` int(10) unsigned NULL auto_increment, `c2_p_id` int(10) unsigned NOT NULL default '0', `c2_note` text NOT NULL, `c2_active` tinyint(1) unsigned NOT NULL default '1', PRIMARY KEY (`c2_id`), KEY `c2_p_id` (`c2_p_id`) );
-insert into t1 values (0,'A01-Comp',1);
-insert into t1 values (0,'B01-Comp',1);
-insert into t2 values (0,1,'A Note',1);
+create table `t1` ( `p_id` int(10) unsigned NOT NULL auto_increment, `p_code` varchar(20) NOT NULL default '', `p_created` datetime NOT NULL default '0000-00-00 00:00:00', `p_active` tinyint(1) unsigned NOT NULL default '1', PRIMARY KEY (`p_id`) );
+create table `t2` ( `c2_id` int(10) unsigned NULL auto_increment, `c2_p_id` int(10) unsigned NOT NULL default '0', `c2_note` text NOT NULL, `c2_created` datetime NOT NULL default '0000-00-00 00:00:00', `c2_active` tinyint(1) unsigned NOT NULL default '1', PRIMARY KEY (`c2_id`), KEY `c2_p_id` (`c2_p_id`) );
+insert into t1 values (0,'A01-Comp',"2004-01-05 12:12:12",1);
+insert into t1 values (0,'B01-Comp',"2004-01-05 12:12:13",1);
+insert into t2 values (0,1,'A Note',"2004-01-05 12:12:14",1);
update t1 left join t2 on p_id = c2_p_id set c2_note = 'asdf-1' where p_id = 2;
select * from t1;
select * from t2;