Loading BitKeeper/etc/logging_ok +1 −0 Original line number Diff line number Diff line Loading @@ -102,6 +102,7 @@ miguel@light.local miguel@sartre.local mikron@c-fb0ae253.1238-1-64736c10.cust.bredbandsbolaget.se mikron@mikael-ronstr-ms-dator.local mleich@mysql.com mmatthew@markslaptop. monty@bitch.mysql.fi monty@butch. Loading mysql-test/include/ps_modify.inc +7 −7 Original line number Diff line number Diff line Loading @@ -110,10 +110,10 @@ select a,b from t1 where a=@arg00; set @arg00=NULL; set @arg01=2; execute stmt1 using @arg00, @arg01; select a,b from t1; select a,b from t1 order by a; set @arg00=0; execute stmt1 using @arg01, @arg00; select a,b from t1; select a,b from t1 order by a; ## update with subquery and several parameters set @arg00=23; Loading @@ -134,7 +134,7 @@ prepare stmt1 from 'update t1 set a=? where b=? and a not in (select ? from t2 where b = ? or a = ?)'; execute stmt1 using @arg04, @arg01, @arg02, @arg03, @arg00 ; select a,b from t1 ; select a,b from t1 order by a; drop table t2 ; ## update with parameters in limit Loading Loading @@ -202,7 +202,7 @@ set @arg01=1 ; prepare stmt1 from 'insert into t1 set a=?, b=''sechs'' on duplicate key update a=a + ?, b=concat(b,''modified'') '; execute stmt1 using @arg00, @arg01; select * from t1; select * from t1 order by a; set @arg00=81 ; set @arg01=1 ; --error 1062 Loading @@ -221,17 +221,17 @@ set @updated="updated" ; insert into t1 values(1000,'x1000_1') ; insert into t1 values(@1000,@x1000_2),(@1000,@x1000_3) on duplicate key update a = a + @100, b = concat(b,@updated) ; select a,b from t1 where a >= 1000 ; select a,b from t1 where a >= 1000 order by a ; delete from t1 where a >= 1000 ; insert into t1 values(1000,'x1000_1') ; prepare stmt1 from ' insert into t1 values(?,?),(?,?) on duplicate key update a = a + ?, b = concat(b,?) '; execute stmt1 using @1000, @x1000_2, @1000, @x1000_3, @100, @updated ; select a,b from t1 where a >= 1000 ; select a,b from t1 where a >= 1000 order by a ; delete from t1 where a >= 1000 ; insert into t1 values(1000,'x1000_1') ; execute stmt1 using @1000, @x1000_2, @1100, @x1000_3, @100, @updated ; select a,b from t1 where a >= 1000 ; select a,b from t1 where a >= 1000 order by a ; delete from t1 where a >= 1000 ; ## replace Loading mysql-test/include/ps_modify1.inc +5 −5 Original line number Diff line number Diff line Loading @@ -45,19 +45,19 @@ set @duplicate='duplicate ' ; set @1000=1000 ; set @5=5 ; select a,b from t1 where a < 5 ; select a,b from t1 where a < 5 order by a ; --enable_info insert into t1 select a + @1000, concat(@duplicate,b) from t1 where a < @5 ; --disable_info select a,b from t1 where a >= 1000 ; select a,b from t1 where a >= 1000 order by a ; delete from t1 where a >= 1000 ; prepare stmt1 from ' insert into t1 select a + ?, concat(?,b) from t1 where a < ? ' ; --enable_info execute stmt1 using @1000, @duplicate, @5; --disable_info select a,b from t1 where a >= 1000 ; select a,b from t1 where a >= 1000 order by a ; delete from t1 where a >= 1000 ; set @float=1.00; Loading @@ -78,7 +78,7 @@ select b, a + @100 from t1 where (a,b) in ( select sqrt(a+@1)+CAST(@float AS signed),b from t1); --disable_info select a,b from t2; select a,b from t2 order by a ; delete from t2 ; prepare stmt1 from ' insert into t2 (b,a) select ?, sum(first.a) Loading @@ -93,5 +93,5 @@ select b, a + ? from t1 --enable_info execute stmt1 using @duplicate, @5, @five, @2, @100, @1, @float ; --disable_info select a,b from t2; select a,b from t2 order by a ; drop table t2; mysql-test/r/ndb_insert.result +118 −4 Original line number Diff line number Diff line Loading @@ -420,6 +420,9 @@ INSERT INTO t1 VALUES (1,1,1),(2,2,2),(3,3,3),(4,4,4),(5,5,5), (6,6,6),(7,7,7),(8,8,8),(9,9,9),(10,10,10); ERROR 23000: Duplicate entry '10' for key 1 select count(*) from t1; count(*) 2000 begin; SELECT COUNT(*) FROM t1; COUNT(*) Loading @@ -429,17 +432,128 @@ INSERT INTO t1 VALUES SELECT COUNT(*) FROM t1; COUNT(*) 2005 rollback; begin; INSERT INTO t1 VALUES (1,1,1),(2,2,2),(3,3,3),(4,4,4),(5,5,5), (6,6,6),(7,7,7),(8,8,8),(9,9,9),(10,10,10); ERROR 23000: Duplicate entry '10' for key 1 SELECT COUNT(*) FROM t1; COUNT(*) commit; ERROR HY000: Got error 4350 'Transaction already aborted' from ndbcluster select * from t1 where pk1=1; pk1 b c 1 1 1 select * from t1 where pk1=10; pk1 b c 10 10 10 select count(*) from t1 where pk1 <= 10 order by pk1; count(*) 11 select count(*) from t1; count(*) 2000 begin; INSERT INTO t1 VALUES (1,1,1),(2,2,2),(3,3,3),(4,4,4),(5,5,5), (6,6,6),(7,7,7),(8,8,8),(9,9,9),(10,10,10); ERROR 23000: Duplicate entry '10' for key 1 rollback; select * from t1 where pk1=1; pk1 b c 1 1 1 select * from t1 where pk1=10; pk1 b c 10 10 10 select count(*) from t1 where pk1 <= 10 order by pk1; count(*) 11 select count(*) from t1; count(*) 2000 begin; INSERT INTO t1 VALUES (1,1,1),(2,2,2),(3,3,3),(4,4,4),(5,5,5), (6,6,6),(7,7,7),(8,8,8),(9,9,9),(10,10,10); ERROR 23000: Duplicate entry '10' for key 1 SELECT * FROM t1 WHERE pk1=10; ERROR HY000: Got error 4350 'Transaction already aborted' from ndbcluster rollback; select * from t1 where pk1=1; pk1 b c 1 1 1 select * from t1 where pk1=10; pk1 b c 10 10 10 select count(*) from t1 where pk1 <= 10 order by pk1; count(*) 11 select count(*) from t1; count(*) 2000 begin; INSERT INTO t1 VALUES (1,1,1),(2,2,2),(3,3,3),(4,4,4),(5,5,5), (6,6,6),(7,7,7),(8,8,8),(9,9,9),(10,10,10); ERROR 23000: Duplicate entry '10' for key 1 SELECT * FROM t1 WHERE pk1=10; ERROR HY000: Got error 4350 'Transaction already aborted' from ndbcluster SELECT * FROM t1 WHERE pk1=10; ERROR HY000: Got error 4350 'Transaction already aborted' from ndbcluster commit; SELECT COUNT(*) FROM t1; COUNT(*) ERROR HY000: Got error 4350 'Transaction already aborted' from ndbcluster select * from t1 where pk1=1; pk1 b c 1 1 1 select * from t1 where pk1=10; pk1 b c 10 10 10 select count(*) from t1 where pk1 <= 10 order by pk1; count(*) 11 select count(*) from t1; count(*) 2000 begin; INSERT INTO t1 VALUES (1,1,1),(2,2,2),(3,3,3),(4,4,4),(5,5,5), (6,6,6),(7,7,7),(8,8,8),(9,9,9),(10,10,10); ERROR 23000: Duplicate entry '10' for key 1 INSERT INTO t1 values (4000, 40, 44); ERROR HY000: Got error 4350 'Transaction already aborted' from ndbcluster rollback; select * from t1 where pk1=1; pk1 b c 1 1 1 select * from t1 where pk1=10; pk1 b c 10 10 10 select count(*) from t1 where pk1 <= 10 order by pk1; count(*) 11 select count(*) from t1; count(*) 2000 insert into t1 select * from t1 where b < 10 order by pk1; ERROR 23000: Duplicate entry '9' for key 1 begin; INSERT IGNORE INTO t1 VALUES(1,2,3); ERROR HY000: Table storage engine for 't1' doesn't have this option commit; select * from t1 where pk1=1; pk1 b c 1 1 1 INSERT IGNORE INTO t1 VALUES(1,2,3); ERROR HY000: Table storage engine for 't1' doesn't have this option select * from t1 where pk1=1; pk1 b c 1 1 1 REPLACE INTO t1 values(1, 2, 3); select * from t1 where pk1=1; pk1 b c 1 2 3 INSERT INTO t1 VALUES(1,1,1) ON DUPLICATE KEY UPDATE b=79; ERROR HY000: Table storage engine for 't1' doesn't have this option select * from t1 where pk1=1; pk1 b c 1 2 3 DROP TABLE t1; mysql-test/r/ps_2myisam.result +31 −31 Original line number Diff line number Diff line Loading @@ -1016,15 +1016,15 @@ set @arg01=2; execute stmt1 using @arg00, @arg01; Warnings: Warning 1263 Data truncated; NULL supplied to NOT NULL column 'a' at row 1 select a,b from t1; select a,b from t1 order by a; a b 1 one 0 two 1 one 3 three 4 four set @arg00=0; execute stmt1 using @arg01, @arg00; select a,b from t1; select a,b from t1 order by a; a b 1 one 2 two Loading @@ -1048,7 +1048,7 @@ prepare stmt1 from 'update t1 set a=? where b=? and a not in (select ? from t2 where b = ? or a = ?)'; execute stmt1 using @arg04, @arg01, @arg02, @arg03, @arg00 ; select a,b from t1 ; select a,b from t1 order by a; a b 1 one 2 two Loading Loading @@ -1142,19 +1142,19 @@ set @arg01=1 ; prepare stmt1 from 'insert into t1 set a=?, b=''sechs'' on duplicate key update a=a + ?, b=concat(b,''modified'') '; execute stmt1 using @arg00, @arg01; select * from t1; select * from t1 order by a; a b 0 NULL 1 one 2 two 3 three 4 four 5 five 7 sixmodified 0 NULL 8 eight 9 nine 81 8-1 82 8-2 9 nine set @arg00=81 ; set @arg01=1 ; execute stmt1 using @arg00, @arg01; Loading @@ -1170,7 +1170,7 @@ set @updated="updated" ; insert into t1 values(1000,'x1000_1') ; insert into t1 values(@1000,@x1000_2),(@1000,@x1000_3) on duplicate key update a = a + @100, b = concat(b,@updated) ; select a,b from t1 where a >= 1000 ; select a,b from t1 where a >= 1000 order by a ; a b 1000 x1000_3 1100 x1000_1updated Loading @@ -1179,14 +1179,14 @@ insert into t1 values(1000,'x1000_1') ; prepare stmt1 from ' insert into t1 values(?,?),(?,?) on duplicate key update a = a + ?, b = concat(b,?) '; execute stmt1 using @1000, @x1000_2, @1000, @x1000_3, @100, @updated ; select a,b from t1 where a >= 1000 ; select a,b from t1 where a >= 1000 order by a ; a b 1000 x1000_3 1100 x1000_1updated delete from t1 where a >= 1000 ; insert into t1 values(1000,'x1000_1') ; execute stmt1 using @1000, @x1000_2, @1100, @x1000_3, @100, @updated ; select a,b from t1 where a >= 1000 ; select a,b from t1 where a >= 1000 order by a ; a b 1200 x1000_1updatedupdated delete from t1 where a >= 1000 ; Loading @@ -1195,37 +1195,37 @@ ERROR HY000: This command is not supported in the prepared statement protocol ye set @duplicate='duplicate ' ; set @1000=1000 ; set @5=5 ; select a,b from t1 where a < 5 ; select a,b from t1 where a < 5 order by a ; a b 0 NULL 1 one 2 two 3 three 4 four 0 NULL insert into t1 select a + @1000, concat(@duplicate,b) from t1 where a < @5 ; affected rows: 5 info: Records: 5 Duplicates: 0 Warnings: 0 select a,b from t1 where a >= 1000 ; select a,b from t1 where a >= 1000 order by a ; a b 1000 NULL 1001 duplicate one 1002 duplicate two 1003 duplicate three 1004 duplicate four 1000 NULL delete from t1 where a >= 1000 ; prepare stmt1 from ' insert into t1 select a + ?, concat(?,b) from t1 where a < ? ' ; execute stmt1 using @1000, @duplicate, @5; affected rows: 5 info: Records: 5 Duplicates: 0 Warnings: 0 select a,b from t1 where a >= 1000 ; select a,b from t1 where a >= 1000 order by a ; a b 1004 duplicate four 1003 duplicate three 1002 duplicate two 1001 duplicate one 1000 NULL 1001 duplicate one 1002 duplicate two 1003 duplicate three 1004 duplicate four delete from t1 where a >= 1000 ; set @float=1.00; set @five='five' ; Loading @@ -1243,15 +1243,15 @@ where (a,b) in ( select sqrt(a+@1)+CAST(@float AS signed),b from t1); affected rows: 8 info: Records: 8 Duplicates: 0 Warnings: 0 select a,b from t2; select a,b from t2 order by a ; a b 81 duplicate 82 duplicate 8 duplicate 3 duplicate 4 duplicate 9 duplicate 7 duplicate 3 duplicate 8 duplicate 9 duplicate 81 duplicate 82 duplicate 103 three delete from t2 ; prepare stmt1 from ' insert into t2 (b,a) Loading @@ -1267,15 +1267,15 @@ select b, a + ? from t1 execute stmt1 using @duplicate, @5, @five, @2, @100, @1, @float ; affected rows: 8 info: Records: 8 Duplicates: 0 Warnings: 0 select a,b from t2; select a,b from t2 order by a ; a b 81 duplicate 82 duplicate 8 duplicate 3 duplicate 4 duplicate 9 duplicate 7 duplicate 3 duplicate 8 duplicate 9 duplicate 81 duplicate 82 duplicate 103 three drop table t2; drop table t1, t_many_col_types; Loading
BitKeeper/etc/logging_ok +1 −0 Original line number Diff line number Diff line Loading @@ -102,6 +102,7 @@ miguel@light.local miguel@sartre.local mikron@c-fb0ae253.1238-1-64736c10.cust.bredbandsbolaget.se mikron@mikael-ronstr-ms-dator.local mleich@mysql.com mmatthew@markslaptop. monty@bitch.mysql.fi monty@butch. Loading
mysql-test/include/ps_modify.inc +7 −7 Original line number Diff line number Diff line Loading @@ -110,10 +110,10 @@ select a,b from t1 where a=@arg00; set @arg00=NULL; set @arg01=2; execute stmt1 using @arg00, @arg01; select a,b from t1; select a,b from t1 order by a; set @arg00=0; execute stmt1 using @arg01, @arg00; select a,b from t1; select a,b from t1 order by a; ## update with subquery and several parameters set @arg00=23; Loading @@ -134,7 +134,7 @@ prepare stmt1 from 'update t1 set a=? where b=? and a not in (select ? from t2 where b = ? or a = ?)'; execute stmt1 using @arg04, @arg01, @arg02, @arg03, @arg00 ; select a,b from t1 ; select a,b from t1 order by a; drop table t2 ; ## update with parameters in limit Loading Loading @@ -202,7 +202,7 @@ set @arg01=1 ; prepare stmt1 from 'insert into t1 set a=?, b=''sechs'' on duplicate key update a=a + ?, b=concat(b,''modified'') '; execute stmt1 using @arg00, @arg01; select * from t1; select * from t1 order by a; set @arg00=81 ; set @arg01=1 ; --error 1062 Loading @@ -221,17 +221,17 @@ set @updated="updated" ; insert into t1 values(1000,'x1000_1') ; insert into t1 values(@1000,@x1000_2),(@1000,@x1000_3) on duplicate key update a = a + @100, b = concat(b,@updated) ; select a,b from t1 where a >= 1000 ; select a,b from t1 where a >= 1000 order by a ; delete from t1 where a >= 1000 ; insert into t1 values(1000,'x1000_1') ; prepare stmt1 from ' insert into t1 values(?,?),(?,?) on duplicate key update a = a + ?, b = concat(b,?) '; execute stmt1 using @1000, @x1000_2, @1000, @x1000_3, @100, @updated ; select a,b from t1 where a >= 1000 ; select a,b from t1 where a >= 1000 order by a ; delete from t1 where a >= 1000 ; insert into t1 values(1000,'x1000_1') ; execute stmt1 using @1000, @x1000_2, @1100, @x1000_3, @100, @updated ; select a,b from t1 where a >= 1000 ; select a,b from t1 where a >= 1000 order by a ; delete from t1 where a >= 1000 ; ## replace Loading
mysql-test/include/ps_modify1.inc +5 −5 Original line number Diff line number Diff line Loading @@ -45,19 +45,19 @@ set @duplicate='duplicate ' ; set @1000=1000 ; set @5=5 ; select a,b from t1 where a < 5 ; select a,b from t1 where a < 5 order by a ; --enable_info insert into t1 select a + @1000, concat(@duplicate,b) from t1 where a < @5 ; --disable_info select a,b from t1 where a >= 1000 ; select a,b from t1 where a >= 1000 order by a ; delete from t1 where a >= 1000 ; prepare stmt1 from ' insert into t1 select a + ?, concat(?,b) from t1 where a < ? ' ; --enable_info execute stmt1 using @1000, @duplicate, @5; --disable_info select a,b from t1 where a >= 1000 ; select a,b from t1 where a >= 1000 order by a ; delete from t1 where a >= 1000 ; set @float=1.00; Loading @@ -78,7 +78,7 @@ select b, a + @100 from t1 where (a,b) in ( select sqrt(a+@1)+CAST(@float AS signed),b from t1); --disable_info select a,b from t2; select a,b from t2 order by a ; delete from t2 ; prepare stmt1 from ' insert into t2 (b,a) select ?, sum(first.a) Loading @@ -93,5 +93,5 @@ select b, a + ? from t1 --enable_info execute stmt1 using @duplicate, @5, @five, @2, @100, @1, @float ; --disable_info select a,b from t2; select a,b from t2 order by a ; drop table t2;
mysql-test/r/ndb_insert.result +118 −4 Original line number Diff line number Diff line Loading @@ -420,6 +420,9 @@ INSERT INTO t1 VALUES (1,1,1),(2,2,2),(3,3,3),(4,4,4),(5,5,5), (6,6,6),(7,7,7),(8,8,8),(9,9,9),(10,10,10); ERROR 23000: Duplicate entry '10' for key 1 select count(*) from t1; count(*) 2000 begin; SELECT COUNT(*) FROM t1; COUNT(*) Loading @@ -429,17 +432,128 @@ INSERT INTO t1 VALUES SELECT COUNT(*) FROM t1; COUNT(*) 2005 rollback; begin; INSERT INTO t1 VALUES (1,1,1),(2,2,2),(3,3,3),(4,4,4),(5,5,5), (6,6,6),(7,7,7),(8,8,8),(9,9,9),(10,10,10); ERROR 23000: Duplicate entry '10' for key 1 SELECT COUNT(*) FROM t1; COUNT(*) commit; ERROR HY000: Got error 4350 'Transaction already aborted' from ndbcluster select * from t1 where pk1=1; pk1 b c 1 1 1 select * from t1 where pk1=10; pk1 b c 10 10 10 select count(*) from t1 where pk1 <= 10 order by pk1; count(*) 11 select count(*) from t1; count(*) 2000 begin; INSERT INTO t1 VALUES (1,1,1),(2,2,2),(3,3,3),(4,4,4),(5,5,5), (6,6,6),(7,7,7),(8,8,8),(9,9,9),(10,10,10); ERROR 23000: Duplicate entry '10' for key 1 rollback; select * from t1 where pk1=1; pk1 b c 1 1 1 select * from t1 where pk1=10; pk1 b c 10 10 10 select count(*) from t1 where pk1 <= 10 order by pk1; count(*) 11 select count(*) from t1; count(*) 2000 begin; INSERT INTO t1 VALUES (1,1,1),(2,2,2),(3,3,3),(4,4,4),(5,5,5), (6,6,6),(7,7,7),(8,8,8),(9,9,9),(10,10,10); ERROR 23000: Duplicate entry '10' for key 1 SELECT * FROM t1 WHERE pk1=10; ERROR HY000: Got error 4350 'Transaction already aborted' from ndbcluster rollback; select * from t1 where pk1=1; pk1 b c 1 1 1 select * from t1 where pk1=10; pk1 b c 10 10 10 select count(*) from t1 where pk1 <= 10 order by pk1; count(*) 11 select count(*) from t1; count(*) 2000 begin; INSERT INTO t1 VALUES (1,1,1),(2,2,2),(3,3,3),(4,4,4),(5,5,5), (6,6,6),(7,7,7),(8,8,8),(9,9,9),(10,10,10); ERROR 23000: Duplicate entry '10' for key 1 SELECT * FROM t1 WHERE pk1=10; ERROR HY000: Got error 4350 'Transaction already aborted' from ndbcluster SELECT * FROM t1 WHERE pk1=10; ERROR HY000: Got error 4350 'Transaction already aborted' from ndbcluster commit; SELECT COUNT(*) FROM t1; COUNT(*) ERROR HY000: Got error 4350 'Transaction already aborted' from ndbcluster select * from t1 where pk1=1; pk1 b c 1 1 1 select * from t1 where pk1=10; pk1 b c 10 10 10 select count(*) from t1 where pk1 <= 10 order by pk1; count(*) 11 select count(*) from t1; count(*) 2000 begin; INSERT INTO t1 VALUES (1,1,1),(2,2,2),(3,3,3),(4,4,4),(5,5,5), (6,6,6),(7,7,7),(8,8,8),(9,9,9),(10,10,10); ERROR 23000: Duplicate entry '10' for key 1 INSERT INTO t1 values (4000, 40, 44); ERROR HY000: Got error 4350 'Transaction already aborted' from ndbcluster rollback; select * from t1 where pk1=1; pk1 b c 1 1 1 select * from t1 where pk1=10; pk1 b c 10 10 10 select count(*) from t1 where pk1 <= 10 order by pk1; count(*) 11 select count(*) from t1; count(*) 2000 insert into t1 select * from t1 where b < 10 order by pk1; ERROR 23000: Duplicate entry '9' for key 1 begin; INSERT IGNORE INTO t1 VALUES(1,2,3); ERROR HY000: Table storage engine for 't1' doesn't have this option commit; select * from t1 where pk1=1; pk1 b c 1 1 1 INSERT IGNORE INTO t1 VALUES(1,2,3); ERROR HY000: Table storage engine for 't1' doesn't have this option select * from t1 where pk1=1; pk1 b c 1 1 1 REPLACE INTO t1 values(1, 2, 3); select * from t1 where pk1=1; pk1 b c 1 2 3 INSERT INTO t1 VALUES(1,1,1) ON DUPLICATE KEY UPDATE b=79; ERROR HY000: Table storage engine for 't1' doesn't have this option select * from t1 where pk1=1; pk1 b c 1 2 3 DROP TABLE t1;
mysql-test/r/ps_2myisam.result +31 −31 Original line number Diff line number Diff line Loading @@ -1016,15 +1016,15 @@ set @arg01=2; execute stmt1 using @arg00, @arg01; Warnings: Warning 1263 Data truncated; NULL supplied to NOT NULL column 'a' at row 1 select a,b from t1; select a,b from t1 order by a; a b 1 one 0 two 1 one 3 three 4 four set @arg00=0; execute stmt1 using @arg01, @arg00; select a,b from t1; select a,b from t1 order by a; a b 1 one 2 two Loading @@ -1048,7 +1048,7 @@ prepare stmt1 from 'update t1 set a=? where b=? and a not in (select ? from t2 where b = ? or a = ?)'; execute stmt1 using @arg04, @arg01, @arg02, @arg03, @arg00 ; select a,b from t1 ; select a,b from t1 order by a; a b 1 one 2 two Loading Loading @@ -1142,19 +1142,19 @@ set @arg01=1 ; prepare stmt1 from 'insert into t1 set a=?, b=''sechs'' on duplicate key update a=a + ?, b=concat(b,''modified'') '; execute stmt1 using @arg00, @arg01; select * from t1; select * from t1 order by a; a b 0 NULL 1 one 2 two 3 three 4 four 5 five 7 sixmodified 0 NULL 8 eight 9 nine 81 8-1 82 8-2 9 nine set @arg00=81 ; set @arg01=1 ; execute stmt1 using @arg00, @arg01; Loading @@ -1170,7 +1170,7 @@ set @updated="updated" ; insert into t1 values(1000,'x1000_1') ; insert into t1 values(@1000,@x1000_2),(@1000,@x1000_3) on duplicate key update a = a + @100, b = concat(b,@updated) ; select a,b from t1 where a >= 1000 ; select a,b from t1 where a >= 1000 order by a ; a b 1000 x1000_3 1100 x1000_1updated Loading @@ -1179,14 +1179,14 @@ insert into t1 values(1000,'x1000_1') ; prepare stmt1 from ' insert into t1 values(?,?),(?,?) on duplicate key update a = a + ?, b = concat(b,?) '; execute stmt1 using @1000, @x1000_2, @1000, @x1000_3, @100, @updated ; select a,b from t1 where a >= 1000 ; select a,b from t1 where a >= 1000 order by a ; a b 1000 x1000_3 1100 x1000_1updated delete from t1 where a >= 1000 ; insert into t1 values(1000,'x1000_1') ; execute stmt1 using @1000, @x1000_2, @1100, @x1000_3, @100, @updated ; select a,b from t1 where a >= 1000 ; select a,b from t1 where a >= 1000 order by a ; a b 1200 x1000_1updatedupdated delete from t1 where a >= 1000 ; Loading @@ -1195,37 +1195,37 @@ ERROR HY000: This command is not supported in the prepared statement protocol ye set @duplicate='duplicate ' ; set @1000=1000 ; set @5=5 ; select a,b from t1 where a < 5 ; select a,b from t1 where a < 5 order by a ; a b 0 NULL 1 one 2 two 3 three 4 four 0 NULL insert into t1 select a + @1000, concat(@duplicate,b) from t1 where a < @5 ; affected rows: 5 info: Records: 5 Duplicates: 0 Warnings: 0 select a,b from t1 where a >= 1000 ; select a,b from t1 where a >= 1000 order by a ; a b 1000 NULL 1001 duplicate one 1002 duplicate two 1003 duplicate three 1004 duplicate four 1000 NULL delete from t1 where a >= 1000 ; prepare stmt1 from ' insert into t1 select a + ?, concat(?,b) from t1 where a < ? ' ; execute stmt1 using @1000, @duplicate, @5; affected rows: 5 info: Records: 5 Duplicates: 0 Warnings: 0 select a,b from t1 where a >= 1000 ; select a,b from t1 where a >= 1000 order by a ; a b 1004 duplicate four 1003 duplicate three 1002 duplicate two 1001 duplicate one 1000 NULL 1001 duplicate one 1002 duplicate two 1003 duplicate three 1004 duplicate four delete from t1 where a >= 1000 ; set @float=1.00; set @five='five' ; Loading @@ -1243,15 +1243,15 @@ where (a,b) in ( select sqrt(a+@1)+CAST(@float AS signed),b from t1); affected rows: 8 info: Records: 8 Duplicates: 0 Warnings: 0 select a,b from t2; select a,b from t2 order by a ; a b 81 duplicate 82 duplicate 8 duplicate 3 duplicate 4 duplicate 9 duplicate 7 duplicate 3 duplicate 8 duplicate 9 duplicate 81 duplicate 82 duplicate 103 three delete from t2 ; prepare stmt1 from ' insert into t2 (b,a) Loading @@ -1267,15 +1267,15 @@ select b, a + ? from t1 execute stmt1 using @duplicate, @5, @five, @2, @100, @1, @float ; affected rows: 8 info: Records: 8 Duplicates: 0 Warnings: 0 select a,b from t2; select a,b from t2 order by a ; a b 81 duplicate 82 duplicate 8 duplicate 3 duplicate 4 duplicate 9 duplicate 7 duplicate 3 duplicate 8 duplicate 9 duplicate 81 duplicate 82 duplicate 103 three drop table t2; drop table t1, t_many_col_types;