summaryrefslogtreecommitdiff
path: root/mysql-test/r/insert_update.result
diff options
context:
space:
mode:
authorunknown <acurtis@pcgem.rdg.cyberkinetica.com>2005-02-17 01:33:59 +0000
committerunknown <acurtis@pcgem.rdg.cyberkinetica.com>2005-02-17 01:33:59 +0000
commit6078fcc1f05bb159928a1e09bacbbc57b3ae07cf (patch)
tree51290048cf881c109c0cdb3f1148aa3848b31b02 /mysql-test/r/insert_update.result
parent92f55e98dd25ef7eaef40b026fba169dbf0a28dd (diff)
downloadmariadb-git-6078fcc1f05bb159928a1e09bacbbc57b3ae07cf.tar.gz
Bug#8147
Fix ambigious table error for INSERT..SELECT..UPDATE mysql-test/r/insert_update.result: Bug#8147 Alter test for bug mysql-test/t/insert_update.test: Bug#8147 Alter test for bug sql/sql_parse.cc: Bug#8147 Change order of code - skip insert table before calling mysql_prepare_insert()
Diffstat (limited to 'mysql-test/r/insert_update.result')
-rw-r--r--mysql-test/r/insert_update.result6
1 files changed, 3 insertions, 3 deletions
diff --git a/mysql-test/r/insert_update.result b/mysql-test/r/insert_update.result
index 753dc2cd749..ff7ec1ba73f 100644
--- a/mysql-test/r/insert_update.result
+++ b/mysql-test/r/insert_update.result
@@ -140,10 +140,10 @@ a b c
5 6 130
TRUNCATE TABLE t1;
INSERT t1 VALUES (1,2,10), (3,4,20);
-CREATE TABLE t2 (x INT, y INT, z INT, d INT);
+CREATE TABLE t2 (a INT, b INT, c INT, d INT);
INSERT t2 VALUES (5,6,30,1), (7,4,40,1), (8,9,60,1);
INSERT t2 VALUES (2,1,11,2), (7,4,40,2);
-INSERT t1 SELECT x,y,z FROM t2 WHERE d=1 ON DUPLICATE KEY UPDATE c=c+100;
+INSERT t1 SELECT a,b,c FROM t2 WHERE d=1 ON DUPLICATE KEY UPDATE c=c+100;
SELECT * FROM t1;
a b c
1 2 10
@@ -157,7 +157,7 @@ a b c
3 4 120
5 0 30
8 9 60
-INSERT t1 SELECT x,y,z FROM t2 WHERE d=2 ON DUPLICATE KEY UPDATE c=c+VALUES(a);
+INSERT t1 SELECT a,b,c FROM t2 WHERE d=2 ON DUPLICATE KEY UPDATE c=c+VALUES(a);
SELECT *, VALUES(a) FROM t1;
a b c VALUES(a)
1 2 10 NULL