summaryrefslogtreecommitdiff
path: root/mysql-test/suite/engines/iuds/t
diff options
context:
space:
mode:
authorNirbhay Choubey <nirbhay@mariadb.com>2017-02-08 15:28:00 -0500
committerNirbhay Choubey <nirbhay@mariadb.com>2017-02-10 06:30:42 -0500
commit8b2e642aa214db729161252b96f36bfbae3add21 (patch)
tree006dcc588623c7c7ee508eca3534259f62244f2c /mysql-test/suite/engines/iuds/t
parentf556aa9b5f3685dfcf1b365d2461316cbd16e169 (diff)
downloadmariadb-git-8b2e642aa214db729161252b96f36bfbae3add21.tar.gz
MDEV-7635: Update tests to adapt to the new default sql_mode
Diffstat (limited to 'mysql-test/suite/engines/iuds/t')
-rw-r--r--mysql-test/suite/engines/iuds/t/delete_decimal.test18
-rw-r--r--mysql-test/suite/engines/iuds/t/insert_decimal.test93
-rw-r--r--mysql-test/suite/engines/iuds/t/insert_number.test37
-rw-r--r--mysql-test/suite/engines/iuds/t/insert_time.test10
-rw-r--r--mysql-test/suite/engines/iuds/t/insert_year.test48
-rw-r--r--mysql-test/suite/engines/iuds/t/strings_update_delete.test9
-rw-r--r--mysql-test/suite/engines/iuds/t/type_bit_iuds.test924
-rw-r--r--mysql-test/suite/engines/iuds/t/update_decimal.test52
-rw-r--r--mysql-test/suite/engines/iuds/t/update_delete_number.test52
-rw-r--r--mysql-test/suite/engines/iuds/t/update_time.test14
-rw-r--r--mysql-test/suite/engines/iuds/t/update_year.test12
11 files changed, 641 insertions, 628 deletions
diff --git a/mysql-test/suite/engines/iuds/t/delete_decimal.test b/mysql-test/suite/engines/iuds/t/delete_decimal.test
index 8217c5727c3..053fc7810dc 100644
--- a/mysql-test/suite/engines/iuds/t/delete_decimal.test
+++ b/mysql-test/suite/engines/iuds/t/delete_decimal.test
@@ -13,7 +13,7 @@ CREATE TABLE t1(c1 DECIMAL(10,5) UNSIGNED NOT NULL, c2 DECIMAL(10,5) SIGNED NULL
INSERT INTO t1 VALUES('00100.05000','-00100.05000','00100119',1),('11111.00009','-9999.99999','9999999',2);
# DECIMAL := DECIMAL(10,0); Decimal values in c3 will be stripped;
-INSERT INTO t1 VALUES('1000000','10000000','1000000000.0001',3);
+INSERT IGNORE INTO t1 VALUES('1000000','10000000','1000000000.0001',3);
# c1, c2, c3 will be rounded automatically
INSERT INTO t1 values('100.000001','1000.999999','9999.999999',4);
@@ -23,8 +23,8 @@ INSERT INTO t1 VALUES('99999.99999','-99999.99999','9999999999',5);
# Test insert leading zero, +/- signs, overflow handling
INSERT INTO t1 VALUES ("0.0","0.0","0.0",6),("01.0","01.0","01.0",7);
-INSERT INTO t1 VALUES ("-.1","-.1","-.1",8);
-INSERT INTO t1 VALUES ("+111111111.11","+111111111.11","+111111111.11",9);
+INSERT IGNORE INTO t1 VALUES ("-.1","-.1","-.1",8);
+INSERT IGNORE INTO t1 VALUES ("+111111111.11","+111111111.11","+111111111.11",9);
# Inserting in scientific notations
INSERT INTO t1 VALUES('1.0e+4','1.0e-5','1.0e+9',10);
@@ -137,7 +137,7 @@ CREATE TABLE t1(c1 FLOAT(10,5) UNSIGNED NOT NULL, c2 FLOAT(10,5) SIGNED NULL, c3
INSERT INTO t1 VALUES('00100.05000','-00100.05000','00100119',1),('11111.00009','-9999.99999','9999999',2);
# DECIMAL := DECIMAL(10,0); Decimal values in c3 will be stripped;
-INSERT INTO t1 VALUES('1000000','10000000','1000000000.0001',3);
+INSERT IGNORE INTO t1 VALUES('1000000','10000000','1000000000.0001',3);
# c1, c2, c3 will be rounded automatically
INSERT INTO t1 values('100.000001','1000.999999','9999.999999',4);
@@ -147,8 +147,8 @@ INSERT INTO t1 VALUES('99999.99999','-99999.99999','9999999999',5);
# Test insert leading zero, +/- signs, overflow handling
INSERT INTO t1 VALUES ("0.0","0.0","0.0",6),("01.0","01.0","01.0",7);
-INSERT INTO t1 VALUES ("-.1","-.1","-.1",8);
-INSERT INTO t1 VALUES ("+111111111.11","+111111111.11","+111111111.11",9);
+INSERT IGNORE INTO t1 VALUES ("-.1","-.1","-.1",8);
+INSERT IGNORE INTO t1 VALUES ("+111111111.11","+111111111.11","+111111111.11",9);
# Inserting in scientific notations
INSERT INTO t1 VALUES('1.0e+4','1.0e-5','1.0e+9',10);
@@ -268,7 +268,7 @@ CREATE TABLE t1(c1 DOUBLE(10,5) UNSIGNED NOT NULL, c2 DOUBLE(10,5) SIGNED NULL,
INSERT INTO t1 VALUES('00100.05000','-00100.05000','00100119',1),('11111.00009','-9999.99999','9999999',2);
# DECIMAL := DECIMAL(10,0); Decimal values in c3 will be stripped;
-INSERT INTO t1 VALUES('1000000','10000000','1000000000.0001',3);
+INSERT IGNORE INTO t1 VALUES('1000000','10000000','1000000000.0001',3);
# c1, c2, c3 will be rounded automatically
INSERT INTO t1 values('100.000001','1000.999999','9999.999999',4);
@@ -278,8 +278,8 @@ INSERT INTO t1 VALUES('99999.99999','-99999.99999','9999999999',5);
# Test insert leading zero, +/- signs, overflow handling
INSERT INTO t1 VALUES ("0.0","0.0","0.0",6),("01.0","01.0","01.0",7);
-INSERT INTO t1 VALUES ("-.1","-.1","-.1",8);
-INSERT INTO t1 VALUES ("+111111111.11","+111111111.11","+111111111.11",9);
+INSERT IGNORE INTO t1 VALUES ("-.1","-.1","-.1",8);
+INSERT IGNORE INTO t1 VALUES ("+111111111.11","+111111111.11","+111111111.11",9);
# Inserting in scientific notations
INSERT INTO t1 VALUES('1.0e+4','1.0e-5','1.0e+9',10);
diff --git a/mysql-test/suite/engines/iuds/t/insert_decimal.test b/mysql-test/suite/engines/iuds/t/insert_decimal.test
index 04ea80bc39b..c75fa19506e 100644
--- a/mysql-test/suite/engines/iuds/t/insert_decimal.test
+++ b/mysql-test/suite/engines/iuds/t/insert_decimal.test
@@ -17,31 +17,32 @@ INSERT INTO t1(c1) VALUES('12345.000009');
# Test insert max values
INSERT INTO t1 VALUES('99999.99999','-99999.99999','99999.99999',3);
-INSERT INTO t2 VALUES('-9999999999','-9999999999','9999999999',4);
+INSERT IGNORE INTO t2 VALUES('-9999999999','-9999999999','9999999999',4);
# Test insert outside max value, would be clipped to closest endpoint
--sorted_result
SELECT * FROM t1;
--error ER_DUP_ENTRY
+SET STATEMENT sql_mode = '' FOR
INSERT INTO t1 VALUES('100000.000002','-100000.000002','100000.000002',5);
DELETE FROM t1 WHERE c1='99999.99999' AND c2='-99999.99999';
--sorted_result
SELECT * FROM t1;
-INSERT INTO t1 VALUES('100000.000002','-100000.000002','100000.000002',5);
-INSERT INTO t2 VALUES('10000000000','-10000000000','10000000000',6);
+INSERT IGNORE INTO t1 VALUES('100000.000002','-100000.000002','100000.000002',5);
+INSERT IGNORE INTO t2 VALUES('10000000000','-10000000000','10000000000',6);
# Test insert leading zero, +/- signs, overflow handling
insert into t1 values ("0.0","0.0","0.0",7),("01.0","01.0","01.0",10);
-insert into t1 values ("-.1","-.1","-.1",13);
-insert into t1 values ("+111111111.11","+111111111.11","+111111111.11",19);
-insert into t2 values ("0.0","0.0","0.0",7),("-0.0","-0.0","-0.0",8),("+0.0","+0.0","+0.0",9),("01.0","01.0","01.0",10),("+01.0","+01.0","+01.0",11),("-01.0","-01.0","-01.0",12);
-insert into t2 values ("-.1","-.1","-.1",13),("+.1","+.1","+.1",14),(".1",".1",".1",15);
-insert into t2 values ("00000000000001","00000000000001","00000000000001",16),("+0000000000001","+0000000000001","+0000000000001",17),("-0000000000001","-0000000000001","-0000000000001",18);
-insert into t2 values ("+111111111.11","+111111111.11","+111111111.11",19),("111111111.11","111111111.11","111111111.11",20),("-11111111.11","-11111111.11","-11111111.11",21);
-insert into t2 values ("-111111111.11","-111111111.11","-111111111.11",22),("+1111111111.11","+1111111111.11","+1111111111.11",23),("1111111111.11","1111111111.11","1111111111.11",24);
-insert into t2 values ("1e+1000","1e+1000","1e+1000",25),("1e-1000","1e-1000","1e-1000",26),("-1e+1000","-1e+1000","-1e+1000",27);
-insert into t2 values ("1e+4294967296","1e+4294967296","1e+4294967296",28),("1e-4294967296","1e-4294967296","1e-4294967296",29);
-insert into t2 values ("1e+18446744073709551615","1e+18446744073709551615","1e+18446744073709551615",30),("1e+18446744073709551616","1e+18446744073709551616","1e+18446744073709551616",31),("1e-9223372036854775807","1e-9223372036854775807","1e-9223372036854775807",32),("1e-9223372036854775809","1e-9223372036854775809","1e-9223372036854775809",33);
+insert ignore into t1 values ("-.1","-.1","-.1",13);
+insert ignore into t1 values ("+111111111.11","+111111111.11","+111111111.11",19);
+insert ignore into t2 values ("0.0","0.0","0.0",7),("-0.0","-0.0","-0.0",8),("+0.0","+0.0","+0.0",9),("01.0","01.0","01.0",10),("+01.0","+01.0","+01.0",11),("-01.0","-01.0","-01.0",12);
+insert ignore into t2 values ("-.1","-.1","-.1",13),("+.1","+.1","+.1",14),(".1",".1",".1",15);
+insert ignore into t2 values ("00000000000001","00000000000001","00000000000001",16),("+0000000000001","+0000000000001","+0000000000001",17),("-0000000000001","-0000000000001","-0000000000001",18);
+insert ignore into t2 values ("+111111111.11","+111111111.11","+111111111.11",19),("111111111.11","111111111.11","111111111.11",20),("-11111111.11","-11111111.11","-11111111.11",21);
+insert ignore into t2 values ("-111111111.11","-111111111.11","-111111111.11",22),("+1111111111.11","+1111111111.11","+1111111111.11",23),("1111111111.11","1111111111.11","1111111111.11",24);
+insert ignore into t2 values ("1e+1000","1e+1000","1e+1000",25),("1e-1000","1e-1000","1e-1000",26),("-1e+1000","-1e+1000","-1e+1000",27);
+insert ignore into t2 values ("1e+4294967296","1e+4294967296","1e+4294967296",28),("1e-4294967296","1e-4294967296","1e-4294967296",29);
+insert ignore into t2 values ("1e+18446744073709551615","1e+18446744073709551615","1e+18446744073709551615",30),("1e+18446744073709551616","1e+18446744073709551616","1e+18446744073709551616",31),("1e-9223372036854775807","1e-9223372036854775807","1e-9223372036854775807",32),("1e-9223372036854775809","1e-9223372036854775809","1e-9223372036854775809",33);
# Now Select
--sorted_result
@@ -289,8 +290,8 @@ SELECT c1,MIN(c2) FROM t1 GROUP BY c1;
# Test extremes
CREATE TABLE t5(c1 DECIMAL(65,0) UNSIGNED NOT NULL, c2 DECIMAL(65,0) SIGNED NULL, c3 DECIMAL, c4 INT, INDEX idx(c1,c2));
-INSERT INTO t5 VALUES('1e+64','-1e+64','1e+64',1),('1e-64','-1e-64','1e-64',2);
-INSERT INTO t5 VALUES('1.2e+65','-1.2e+65','1.2e+65',3),('1.2e-65','-1.2e-65','1.2e-65',4);
+INSERT IGNORE INTO t5 VALUES('1e+64','-1e+64','1e+64',1),('1e-64','-1e-64','1e-64',2);
+INSERT IGNORE INTO t5 VALUES('1.2e+65','-1.2e+65','1.2e+65',3),('1.2e-65','-1.2e-65','1.2e-65',4);
--sorted_result
SELECT * FROM t5;
DROP TABLE t5;
@@ -347,28 +348,29 @@ INSERT INTO t1(c1) VALUES('12345.000009');
# Test insert max values
INSERT INTO t1 VALUES('99999.99999','-99999.99999','99999.99999',3);
-INSERT INTO t2 VALUES('-9999999999','-9999999999','9999999999',4);
+INSERT IGNORE INTO t2 VALUES('-9999999999','-9999999999','9999999999',4);
# Test insert outside max value, would be clipped to closest endpoint
SELECT * FROM t1;
--error ER_DUP_ENTRY
+SET STATEMENT sql_mode = '' FOR
INSERT INTO t1 VALUES('100000.000002','-100000.000002','100000.000002',5);
DELETE FROM t1 WHERE c1='100000.00000' AND c2='-100000.00000';
-INSERT INTO t1 VALUES('100000.000002','-100000.000002','100000.000002',5);
-INSERT INTO t2 VALUES('10000000000','-10000000000','10000000000',6);
+INSERT IGNORE INTO t1 VALUES('100000.000002','-100000.000002','100000.000002',5);
+INSERT IGNORE INTO t2 VALUES('10000000000','-10000000000','10000000000',6);
# Test insert leading zero, +/- signs, overflow handling
insert into t1 values ("0.0","0.0","0.0",7),("01.0","01.0","01.0",10);
-insert into t1 values ("-.1","-.1","-.1",13);
-insert into t1 values ("+111111111.11","+111111111.11","+111111111.11",19);
-insert into t2 values ("0.0","0.0","0.0",7),("-0.0","-0.0","-0.0",8),("+0.0","+0.0","+0.0",9),("01.0","01.0","01.0",10),("+01.0","+01.0","+01.0",11),("-01.0","-01.0","-01.0",12);
-insert into t2 values ("-.1","-.1","-.1",13),("+.1","+.1","+.1",14),(".1",".1",".1",15);
-insert into t2 values ("00000000000001","00000000000001","00000000000001",16),("+0000000000001","+0000000000001","+0000000000001",17),("-0000000000001","-0000000000001","-0000000000001",18);
-insert into t2 values ("+111111111.11","+111111111.11","+111111111.11",19),("111111111.11","111111111.11","111111111.11",20),("-11111111.11","-11111111.11","-11111111.11",21);
-insert into t2 values ("-111111111.11","-111111111.11","-111111111.11",22),("+1111111111.11","+1111111111.11","+1111111111.11",23),("1111111111.11","1111111111.11","1111111111.11",24);
-insert into t2 values ("1e+1000","1e+1000","1e+1000",25),("1e-1000","1e-1000","1e-1000",26),("-1e+1000","-1e+1000","-1e+1000",27);
-insert into t2 values ("1e+4294967296","1e+4294967296","1e+4294967296",28),("1e-4294967296","1e-4294967296","1e-4294967296",29);
-insert into t2 values ("1e+18446744073709551615","1e+18446744073709551615","1e+18446744073709551615",30),("1e+18446744073709551616","1e+18446744073709551616","1e+18446744073709551616",31),("1e-9223372036854775807","1e-9223372036854775807","1e-9223372036854775807",32),("1e-9223372036854775809","1e-9223372036854775809","1e-9223372036854775809",33);
+insert ignore into t1 values ("-.1","-.1","-.1",13);
+insert ignore into t1 values ("+111111111.11","+111111111.11","+111111111.11",19);
+insert ignore into t2 values ("0.0","0.0","0.0",7),("-0.0","-0.0","-0.0",8),("+0.0","+0.0","+0.0",9),("01.0","01.0","01.0",10),("+01.0","+01.0","+01.0",11),("-01.0","-01.0","-01.0",12);
+insert ignore into t2 values ("-.1","-.1","-.1",13),("+.1","+.1","+.1",14),(".1",".1",".1",15);
+insert ignore into t2 values ("00000000000001","00000000000001","00000000000001",16),("+0000000000001","+0000000000001","+0000000000001",17),("-0000000000001","-0000000000001","-0000000000001",18);
+insert ignore into t2 values ("+111111111.11","+111111111.11","+111111111.11",19),("111111111.11","111111111.11","111111111.11",20),("-11111111.11","-11111111.11","-11111111.11",21);
+insert ignore into t2 values ("-111111111.11","-111111111.11","-111111111.11",22),("+1111111111.11","+1111111111.11","+1111111111.11",23),("1111111111.11","1111111111.11","1111111111.11",24);
+insert ignore into t2 values ("1e+1000","1e+1000","1e+1000",25),("1e-1000","1e-1000","1e-1000",26),("-1e+1000","-1e+1000","-1e+1000",27);
+insert ignore into t2 values ("1e+4294967296","1e+4294967296","1e+4294967296",28),("1e-4294967296","1e-4294967296","1e-4294967296",29);
+insert ignore into t2 values ("1e+18446744073709551615","1e+18446744073709551615","1e+18446744073709551615",30),("1e+18446744073709551616","1e+18446744073709551616","1e+18446744073709551616",31),("1e-9223372036854775807","1e-9223372036854775807","1e-9223372036854775807",32),("1e-9223372036854775809","1e-9223372036854775809","1e-9223372036854775809",33);
# Now Select
--sorted_result
@@ -622,6 +624,7 @@ INSERT INTO t5 VALUES('1e+22','-1e+22','1e+22',1),('1e-22','-1e-22','1e-22',2);
--sorted_result
SELECT * FROM t5;
--enable_result_log
+SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
ALTER TABLE t5 CHANGE c1 c1 FLOAT(24,0) SIGNED NOT NULL, CHANGE c2 c2 FLOAT(24,0) UNSIGNED NULL;
INSERT INTO t5 VALUES('-1e+23','1e+23','1e+23',3),('-1e-23','1e-23','1e-23',4);
#Output is platform dependent
@@ -629,9 +632,10 @@ INSERT INTO t5 VALUES('-1e+23','1e+23','1e+23',3),('-1e-23','1e-23','1e-23',4);
--sorted_result
SELECT * FROM t5;
--enable_result_log
+SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
ALTER TABLE t5 CHANGE c1 c1 FLOAT(53,0) UNSIGNED, CHANGE c2 c2 FLOAT(53,0) SIGNED;
-INSERT INTO t5 VALUES('1e+52','-1e+52','1e+52',5),('1e-52','-1e-52','1e-52',6);
-INSERT INTO t5 VALUES('1e+53','-1e+53','1e+53',7),('1e-53','-1e-53','1e-53',8);
+INSERT IGNORE INTO t5 VALUES('1e+52','-1e+52','1e+52',5),('1e-52','-1e-52','1e-52',6);
+INSERT IGNORE INTO t5 VALUES('1e+53','-1e+53','1e+53',7),('1e-53','-1e-53','1e-53',8);
#Output is platform dependent
--replace_column 1 # 2 #
@@ -665,28 +669,29 @@ INSERT INTO t1(c1) VALUES('12345.000009');
# Test insert max values
INSERT INTO t1 VALUES('99999.99999','-99999.99999','99999.99999',3);
-INSERT INTO t2 VALUES('-9999999999','-9999999999','9999999999',4);
+INSERT IGNORE INTO t2 VALUES('-9999999999','-9999999999','9999999999',4);
# Test insert outside max value, would be clipped to closest endpoint
SELECT * FROM t1;
--error ER_DUP_ENTRY
+SET STATEMENT sql_mode = '' FOR
INSERT INTO t1 VALUES('100000.000002','-100000.000002','100000.000002',5);
DELETE FROM t1 WHERE c1='99999.99999' AND c2='-99999.99999';
-INSERT INTO t1 VALUES('100000.000002','-100000.000002','100000.000002',5);
-INSERT INTO t2 VALUES('10000000000','-10000000000','10000000000',6);
+INSERT IGNORE INTO t1 VALUES('100000.000002','-100000.000002','100000.000002',5);
+INSERT IGNORE INTO t2 VALUES('10000000000','-10000000000','10000000000',6);
# Test insert leading zero, +/- signs, overflow handling
insert into t1 values ("0.0","0.0","0.0",7),("01.0","01.0","01.0",10);
-insert into t1 values ("-.1","-.1","-.1",13);
-insert into t1 values ("+111111111.11","+111111111.11","+111111111.11",19);
-insert into t2 values ("0.0","0.0","0.0",7),("-0.0","-0.0","-0.0",8),("+0.0","+0.0","+0.0",9),("01.0","01.0","01.0",10),("+01.0","+01.0","+01.0",11),("-01.0","-01.0","-01.0",12);
-insert into t2 values ("-.1","-.1","-.1",13),("+.1","+.1","+.1",14),(".1",".1",".1",15);
-insert into t2 values ("00000000000001","00000000000001","00000000000001",16),("+0000000000001","+0000000000001","+0000000000001",17),("-0000000000001","-0000000000001","-0000000000001",18);
-insert into t2 values ("+111111111.11","+111111111.11","+111111111.11",19),("111111111.11","111111111.11","111111111.11",20),("-11111111.11","-11111111.11","-11111111.11",21);
-insert into t2 values ("-111111111.11","-111111111.11","-111111111.11",22),("+1111111111.11","+1111111111.11","+1111111111.11",23),("1111111111.11","1111111111.11","1111111111.11",24);
-insert into t2 values ("1e+1000","1e+1000","1e+1000",25),("1e-1000","1e-1000","1e-1000",26),("-1e+1000","-1e+1000","-1e+1000",27);
-insert into t2 values ("1e+4294967296","1e+4294967296","1e+4294967296",28),("1e-4294967296","1e-4294967296","1e-4294967296",29);
-insert into t2 values ("1e+18446744073709551615","1e+18446744073709551615","1e+18446744073709551615",30),("1e+18446744073709551616","1e+18446744073709551616","1e+18446744073709551616",31),("1e-9223372036854775807","1e-9223372036854775807","1e-9223372036854775807",32),("1e-9223372036854775809","1e-9223372036854775809","1e-9223372036854775809",33);
+insert ignore into t1 values ("-.1","-.1","-.1",13);
+insert ignore into t1 values ("+111111111.11","+111111111.11","+111111111.11",19);
+insert ignore into t2 values ("0.0","0.0","0.0",7),("-0.0","-0.0","-0.0",8),("+0.0","+0.0","+0.0",9),("01.0","01.0","01.0",10),("+01.0","+01.0","+01.0",11),("-01.0","-01.0","-01.0",12);
+insert ignore into t2 values ("-.1","-.1","-.1",13),("+.1","+.1","+.1",14),(".1",".1",".1",15);
+insert ignore into t2 values ("00000000000001","00000000000001","00000000000001",16),("+0000000000001","+0000000000001","+0000000000001",17),("-0000000000001","-0000000000001","-0000000000001",18);
+insert ignore into t2 values ("+111111111.11","+111111111.11","+111111111.11",19),("111111111.11","111111111.11","111111111.11",20),("-11111111.11","-11111111.11","-11111111.11",21);
+insert ignore into t2 values ("-111111111.11","-111111111.11","-111111111.11",22),("+1111111111.11","+1111111111.11","+1111111111.11",23),("1111111111.11","1111111111.11","1111111111.11",24);
+insert ignore into t2 values ("1e+1000","1e+1000","1e+1000",25),("1e-1000","1e-1000","1e-1000",26),("-1e+1000","-1e+1000","-1e+1000",27);
+insert ignore into t2 values ("1e+4294967296","1e+4294967296","1e+4294967296",28),("1e-4294967296","1e-4294967296","1e-4294967296",29);
+insert ignore into t2 values ("1e+18446744073709551615","1e+18446744073709551615","1e+18446744073709551615",30),("1e+18446744073709551616","1e+18446744073709551616","1e+18446744073709551616",31),("1e-9223372036854775807","1e-9223372036854775807","1e-9223372036854775807",32),("1e-9223372036854775809","1e-9223372036854775809","1e-9223372036854775809",33);
# Now Select
--sorted_result
@@ -939,6 +944,7 @@ CREATE TABLE t5(c1 DOUBLE(23,0) UNSIGNED NOT NULL, c2 DOUBLE(23,0) SIGNED NULL,
INSERT INTO t5 VALUES('1e+22','-1e+22','1e+22',1),('1e-22','-1e-22','1e-22',2);
--sorted_result
SELECT * FROM t5;
+SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
ALTER TABLE t5 CHANGE c1 c1 DOUBLE(24,0) SIGNED NOT NULL, CHANGE c2 c2 DOUBLE(24,0) UNSIGNED NULL;
INSERT INTO t5 VALUES('-1e+23','1e+23','1e+23',3),('-1e-23','1e-23','1e-23',4);
#Output is platform dependent
@@ -946,6 +952,7 @@ INSERT INTO t5 VALUES('-1e+23','1e+23','1e+23',3),('-1e-23','1e-23','1e-23',4);
--sorted_result
SELECT * FROM t5;
--enable_result_log
+SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
ALTER TABLE t5 CHANGE c1 c1 DOUBLE(53,0) UNSIGNED, CHANGE c2 c2 DOUBLE(53,0) SIGNED;
INSERT INTO t5 VALUES('1e+52','-1e+52','1e+52',5),('1e-52','-1e-52','1e-52',6);
INSERT INTO t5 VALUES('1e+53','-1e+53','1e+53',7),('1e-53','-1e-53','1e-53',8);
diff --git a/mysql-test/suite/engines/iuds/t/insert_number.test b/mysql-test/suite/engines/iuds/t/insert_number.test
index 2d5332e2d2e..9e4a971d711 100644
--- a/mysql-test/suite/engines/iuds/t/insert_number.test
+++ b/mysql-test/suite/engines/iuds/t/insert_number.test
@@ -24,14 +24,14 @@ INSERT INTO t2 VALUES(105,NULL,102,103,104,105,106);
INSERT INTO t3 VALUES(105,NULL,102,103,104,105,106);
# Insert empty string ''
-INSERT INTO t1 VALUES('','',17,18,19,20,21);
-INSERT INTO t2 VALUES('','',17,18,19,20,21);
-INSERT INTO t3 VALUES('','',17,18,19,20,21);
+INSERT IGNORE INTO t1 VALUES('','',17,18,19,20,21);
+INSERT IGNORE INTO t2 VALUES('','',17,18,19,20,21);
+INSERT IGNORE INTO t3 VALUES('','',17,18,19,20,21);
# Insert negative value to unsigned integer, positive value to signed integer, zero values
-INSERT INTO t1 VALUES(-1,124,22,23,24,25,26);
-INSERT INTO t2 VALUES(-1,124,22,23,24,25,26);
-INSERT INTO t3 VALUES(-1,124,22,23,24,25,26);
+INSERT IGNORE INTO t1 VALUES(-1,124,22,23,24,25,26);
+INSERT IGNORE INTO t2 VALUES(-1,124,22,23,24,25,26);
+INSERT IGNORE INTO t3 VALUES(-1,124,22,23,24,25,26);
INSERT INTO t1 VALUES(0,124,27,28,29,30,31);
INSERT INTO t2 VALUES(0,124,27,28,29,30,31);
INSERT INTO t3 VALUES(0,124,27,28,29,30,31);
@@ -40,9 +40,9 @@ INSERT INTO t2 VALUES(0,0,32,32,34,35,36);
INSERT INTO t3 VALUES(0,0,32,32,34,35,36);
# Insert non-numeric value to numeric column, would be converted to 0 or numeric value (if contains part)
-INSERT INTO t1 VALUES('101.34 a','a',37,38,39,40,41);
-INSERT INTO t2 VALUES('101.34 a','a',37,38,39,40,41);
-INSERT INTO t3 VALUES('101.34 a','a',37,38,39,40,41);
+INSERT IGNORE INTO t1 VALUES('101.34 a','a',37,38,39,40,41);
+INSERT IGNORE INTO t2 VALUES('101.34 a','a',37,38,39,40,41);
+INSERT IGNORE INTO t3 VALUES('101.34 a','a',37,38,39,40,41);
--sorted_result
SELECT * FROM t1;
@@ -384,29 +384,29 @@ INSERT INTO t4(c1,c3,c4) VALUES(NULL,104,LAST_INSERT_ID());
--if (!$auto_value) {
--die "AUTO_INCREMENT didn't work well on NULL"
}
-INSERT INTO t5(c1,c3,c4) VALUES(NULL,-104,LAST_INSERT_ID());
+INSERT IGNORE INTO t5(c1,c3,c4) VALUES(NULL,-104,LAST_INSERT_ID());
--let $auto_value=`SELECT LAST_INSERT_ID()=110 AND c1=110 FROM t5 WHERE c3=-104;`
--if (!$auto_value) {
--die "AUTO_INCREMENT didn't work well on NULL"
}
# Insert empty strings, increments the value
-INSERT INTO t4 VALUES('','',17,18,19,20,21,22);
+INSERT IGNORE INTO t4 VALUES('','',17,18,19,20,21,22);
--let $auto_value=`SELECT LAST_INSERT_ID()=3 AND c1=3 FROM t4 WHERE c2=0 AND c3=17;`
--if (!$auto_value) {
--die "AUTO_INCREMENT didn't work well on ''"
}
-INSERT INTO t5 VALUES('','',-17,18,19,20,21,22);
+INSERT IGNORE INTO t5 VALUES('','',-17,18,19,20,21,22);
--let $auto_value=`SELECT LAST_INSERT_ID()=111 AND c1=111 FROM t5 WHERE c2=0 AND c3=-17;`
--if (!$auto_value) {
--die "AUTO_INCREMENT didn't work well on ''"
}
# Insert strings with numeric part, inserts the numeric part of the string
-INSERT INTO t4 VALUES('102.34 a','a','a',37,38,39,40,41);
+INSERT IGNORE INTO t4 VALUES('102.34 a','a','a',37,38,39,40,41);
--let $auto_value=`SELECT LAST_INSERT_ID()=111 AND c1=102 FROM t4 WHERE c2=0 AND c3=0;`
--if (!$auto_value) {
--die "AUTO_INCREMENT didn't work well on invalid strings with numeric part"
}
-INSERT INTO t5 VALUES('102.34 a','a','a',37,38,39,40,41);
+INSERT IGNORE INTO t5 VALUES('102.34 a','a','a',37,38,39,40,41);
--let $auto_value=`SELECT LAST_INSERT_ID()=111 AND c1=102 FROM t5 WHERE c2=0 AND c3=0;`
--if (!$auto_value) {
--die "AUTO_INCREMENT didn't work well on invalid strings with numeric part"
@@ -417,7 +417,7 @@ INSERT INTO t4 VALUES(4,7,8,9,10,11,12,13);
--if (!$auto_value) {
--die "AUTO_INCREMENT didn't work on negative value"
}
-INSERT INTO t5 VALUES(-1,-1,-1,8,9,10,11,12);
+INSERT IGNORE INTO t5 VALUES(-1,-1,-1,8,9,10,11,12);
--let $auto_value=`SELECT LAST_INSERT_ID()=112 AND c1=112 FROM t5 WHERE c2=-1 AND c3=-1;`
--if (!$auto_value) {
--die "AUTO_INCREMENT didn't work for negative value on unsigned"
@@ -676,12 +676,14 @@ SELECT c2,MIN(c3) FROM t4 GROUP BY c2;
# Insert NULL to non-null column
--error ER_BAD_NULL_ERROR
+SET STATEMENT sql_mode = '' FOR
INSERT INTO t2(c1) VALUES(NULL);
--error ER_BAD_NULL_ERROR
INSERT INTO t3 VALUES(NULL,1,2,3,4,5,6);
--error ER_BAD_NULL_ERROR
INSERT INTO t4(c3) VALUES(NULL);
--error ER_BAD_NULL_ERROR
+SET STATEMENT sql_mode = '' FOR
INSERT INTO t5(c3) VALUES(NULL);
# Insert duplicate value to pk
@@ -696,6 +698,7 @@ INSERT INTO t5(c1,c2,c3) VALUES(101,-102,4) /*throws error as the row with c1=10
# Insert duplicate value to unique column, throws error
--error ER_DUP_ENTRY
+SET STATEMENT sql_mode = '' FOR
INSERT INTO t5(c3) VALUES(-103) /*throws error as the row with c3=-103 exists */;
--error ER_DUP_ENTRY
# Insert duplicate value to clustered unique column, throws error
@@ -737,7 +740,7 @@ INSERT INTO t7(c1) SELECT c1 FROM t6;
TRUNCATE TABLE t6;
# Test 'INSERT INTO SELECT FROM' with AUTO_INCREMENT and inserting 0,NULL
-INSERT INTO t6 VALUES(5,-1,1,1,1,1,1),(6,-2,2,2,2,2,2),(0,-4,4,4,4,4,4),(NULL,-5,5,5,5,5,5);
+INSERT IGNORE INTO t6 VALUES(5,-1,1,1,1,1,1),(6,-2,2,2,2,2,2),(0,-4,4,4,4,4,4),(NULL,-5,5,5,5,5,5);
INSERT INTO t8 SELECT * FROM t6;
SELECT LAST_INSERT_ID() AS last_insert_id;
--sorted_result
@@ -749,7 +752,7 @@ SELECT * FROM t8;
DROP TABLE t6,t7,t8;
# Test 'INSERT SET'
-INSERT INTO t2 SET c3=5,c4=6;
+INSERT IGNORE INTO t2 SET c3=5,c4=6;
SET SQL_MODE=STRICT_ALL_TABLES;
--error ER_NO_DEFAULT_FOR_FIELD
INSERT INTO t2 SET c3=5,c4=6;
diff --git a/mysql-test/suite/engines/iuds/t/insert_time.test b/mysql-test/suite/engines/iuds/t/insert_time.test
index 4579d9a8f45..0e5e21507a9 100644
--- a/mysql-test/suite/engines/iuds/t/insert_time.test
+++ b/mysql-test/suite/engines/iuds/t/insert_time.test
@@ -43,15 +43,17 @@ INSERT INTO t3 VALUES('8:3:2','8:3:2','2009-01-18'),('1112','1112','2009-01-19')
INSERT INTO t4 VALUES('8:3:2','8:3:2','2009-01-18'),('1112','1112','2009-01-19'),(11,11,'2009-01-20'),('00:12:30','00:12:30','2009-01-23'),('9:00:45','9:00:45','2009-01-24'),('9:36:00','9:36:00','2009-01-25');
# Outside range would be clipped to closest end point
--error ER_DUP_ENTRY
+SET STATEMENT sql_mode = '' FOR
INSERT INTO t1 VALUES('-850:00:00','-850:00:00','2009-01-21');
--error ER_DUP_ENTRY
+SET STATEMENT sql_mode = '' FOR
INSERT INTO t1 VALUES('850:00:00','850:00:00','2009-01-21');
DELETE FROM t1 WHERE c1='-838:59:59' AND c2='-838:59:59';
DELETE FROM t1 WHERE c1='838:59:59' AND c2='838:59:59';
-INSERT INTO t1 VALUES('-850:00:00','-850:00:00','2009-01-21'),('850:00:00','850:00:00','2009-01-21');
+INSERT IGNORE INTO t1 VALUES('-850:00:00','-850:00:00','2009-01-21'),('850:00:00','850:00:00','2009-01-21');
# Insert invalid values
-INSERT INTO t4 VALUES('10.22.22','10.22.22','2009-01-26'),(1234567,1234567,'2009-01-27'),(123456789,123456789,'2009-01-28'),(123456789.10,123456789.10,'2009-01-29'),('10 22:22','10 22:22','2009-01-30'),('12.45a','12.45a','2009-01-31');
+INSERT IGNORE INTO t4 VALUES('10.22.22','10.22.22','2009-01-26'),(1234567,1234567,'2009-01-27'),(123456789,123456789,'2009-01-28'),(123456789.10,123456789.10,'2009-01-29'),('10 22:22','10 22:22','2009-01-30'),('12.45a','12.45a','2009-01-31');
# Insert permissible NULLs
INSERT INTO t1 VALUES('8:29:45',NULL,'2009-02-01');
@@ -1044,7 +1046,7 @@ SELECT * FROM t3 WHERE c1='32 9:23' AND c2='33 9:23' /* 1 row */;
INSERT INTO t1 SET c1='07:23:55',c2='13 06:23:55';
INSERT INTO t2 SET c1='07:23:55',c2='13 06:23:55';
INSERT INTO t3 SET c1='07:23:55';
-INSERT INTO t4 SET c2='07:23:55';
+INSERT IGNORE INTO t4 SET c2='07:23:55';
SELECT * FROM t1 WHERE c1='07:23:55' AND c2='13 06:23:55' /* Returns 1 row with values for other column as NULL */;
SELECT * FROM t2 WHERE c1='07:23:55' AND c2='13 06:23:55' /* Returns 1 row with values for other column as NULL */;
SELECT * FROM t3 WHERE c1='07:23:55' /* Returns 1 row with values for other column as NULL */;
@@ -1055,7 +1057,7 @@ CREATE TABLE t5(c1 TIME NOT NULL, c2 TIME NULL, c3 DATE, INDEX idx(c1,c2));
INSERT INTO t5 SELECT * FROM t4;
SELECT * FROM t5;
TRUNCATE TABLE t5;
-INSERT INTO t5 SELECT * FROM t4 WHERE c1 >='12colon34colon56';
+INSERT IGNORE INTO t5 SELECT * FROM t4 WHERE c1 >='12colon34colon56';
SELECT * FROM t5;
TRUNCATE TABLE t5;
DROP TABLE t5;
diff --git a/mysql-test/suite/engines/iuds/t/insert_year.test b/mysql-test/suite/engines/iuds/t/insert_year.test
index 392b4544376..4d92e36f068 100644
--- a/mysql-test/suite/engines/iuds/t/insert_year.test
+++ b/mysql-test/suite/engines/iuds/t/insert_year.test
@@ -31,27 +31,27 @@ INSERT INTO t4 VALUES(1,1,'98-12-9','98.12.9 11:30:45'),(20,20,'98-12-8','98.12.
# As the result of a function
SET TIMESTAMP=1233216687; # 2009-01-29 13:41:27
-INSERT INTO t1 VALUES(NOW(),CURRENT_DATE,NOW(),CURRENT_DATE);
-INSERT INTO t2 VALUES(NOW(),CURRENT_DATE,NOW(),CURRENT_DATE);
-INSERT INTO t3 VALUES(NOW(),CURRENT_DATE,NOW(),CURRENT_DATE);
-INSERT INTO t4 VALUES(NOW(),CURRENT_DATE,NOW(),CURRENT_DATE);
+INSERT IGNORE INTO t1 VALUES(NOW(),CURRENT_DATE,NOW(),CURRENT_DATE);
+INSERT IGNORE INTO t2 VALUES(NOW(),CURRENT_DATE,NOW(),CURRENT_DATE);
+INSERT IGNORE INTO t3 VALUES(NOW(),CURRENT_DATE,NOW(),CURRENT_DATE);
+INSERT IGNORE INTO t4 VALUES(NOW(),CURRENT_DATE,NOW(),CURRENT_DATE);
# Insert other valid year values one digit strings, '0', '000'
INSERT INTO t1(c1) VALUES('5');
-INSERT INTO t2(c1) VALUES('5');
+INSERT IGNORE INTO t2(c1) VALUES('5');
INSERT INTO t3(c1) VALUES('5');
INSERT INTO t4(c1,c2) VALUES('0','000');
# Insert invalid year values, outside range, would be converted to zero value
-INSERT INTO t2 VALUES(1900,2156,'08-01-06','08/01/07');
-INSERT INTO t3 VALUES('1900','2156','08-01-08','08/1/9');
-INSERT INTO t4 VALUES('1900','2156','08-01-08','08/1/9'),(1900,2156,'08-01-08','08/1/9'),(0,00,'08-01-08','08/1/9'),(000,000,'08-01-08','08/1/9'),('-20','100','08-01-08','08/1/9'),(-20,100,'08-01-08','08/1/9');
+INSERT IGNORE INTO t2 VALUES(1900,2156,'08-01-06','08/01/07');
+INSERT IGNORE INTO t3 VALUES('1900','2156','08-01-08','08/1/9');
+INSERT IGNORE INTO t4 VALUES('1900','2156','08-01-08','08/1/9'),(1900,2156,'08-01-08','08/1/9'),(0,00,'08-01-08','08/1/9'),(000,000,'08-01-08','08/1/9'),('-20','100','08-01-08','08/1/9'),(-20,100,'08-01-08','08/1/9');
# Insert empty string '', would be converted to zero
-INSERT INTO t1 VALUES('','','08-01-04','08/01/05') /* Inserts zero dates for '' strings */;
+INSERT IGNORE INTO t1 VALUES('','','08-01-04','08/01/05') /* Inserts zero dates for '' strings */;
# Insert non-date value(absurd values), would be converted to zero
-INSERT INTO t4 VALUES('abcd','abcd','08-01-10','08/01/11'),(1234,1234,'08-01-12','08/01/13') /* Inserts zero dates for absurd dates */;
+INSERT IGNORE INTO t4 VALUES('abcd','abcd','08-01-10','08/01/11'),(1234,1234,'08-01-12','08/01/13') /* Inserts zero dates for absurd dates */;
# Insert duplicates for parts of the clustered key/unique index
INSERT INTO t2 VALUES('20','30','98-12-16','98.12.16 11:30:45'),('40','20','98-12-15','98.12.15 11:30:45');
@@ -745,9 +745,9 @@ DROP TABLE t5;
# Test 'INSERT SET'
INSERT INTO t1 SET c1='00';
-INSERT INTO t2 SET c1=69;
+INSERT IGNORE INTO t2 SET c1=69;
INSERT INTO t3 SET c1=70;
-INSERT INTO t4 SET c2=99;
+INSERT IGNORE INTO t4 SET c2=99;
--sorted_result
SELECT * FROM t1 WHERE c1=0;
--sorted_result
@@ -787,27 +787,27 @@ INSERT INTO t4 VALUES(1,1,'98-12-9','98.12.9 11:30:45'),(20,20,'98-12-8','98.12.
# As the result of a function
SET TIMESTAMP=1233216687; # 2009-01-29 13:41:27
-INSERT INTO t1 VALUES(NOW(),CURRENT_DATE,NOW(),CURRENT_DATE);
-INSERT INTO t2 VALUES(NOW(),CURRENT_DATE,NOW(),CURRENT_DATE);
-INSERT INTO t3 VALUES(NOW(),CURRENT_DATE,NOW(),CURRENT_DATE);
-INSERT INTO t4 VALUES(NOW(),CURRENT_DATE,NOW(),CURRENT_DATE);
+INSERT IGNORE INTO t1 VALUES(NOW(),CURRENT_DATE,NOW(),CURRENT_DATE);
+INSERT IGNORE INTO t2 VALUES(NOW(),CURRENT_DATE,NOW(),CURRENT_DATE);
+INSERT IGNORE INTO t3 VALUES(NOW(),CURRENT_DATE,NOW(),CURRENT_DATE);
+INSERT IGNORE INTO t4 VALUES(NOW(),CURRENT_DATE,NOW(),CURRENT_DATE);
# Insert other valid year values one digit strings, '0', '000'
INSERT INTO t1(c1) VALUES('5');
-INSERT INTO t2(c1) VALUES('5');
+INSERT IGNORE INTO t2(c1) VALUES('5');
INSERT INTO t3(c1) VALUES('5');
INSERT INTO t4(c1,c2) VALUES('0','000');
# Insert invalid year values, outside range, would be converted to zero value
-INSERT INTO t2 VALUES(1900,2156,'08-01-06','08/01/07');
-INSERT INTO t3 VALUES('1900','2156','08-01-08','08/1/9');
-INSERT INTO t4 VALUES('1900','2156','08-01-08','08/1/9'),(1900,2156,'08-01-08','08/1/9'),(0,00,'08-01-08','08/1/9'),(000,000,'08-01-08','08/1/9'),('-20','100','08-01-08','08/1/9'),(-20,100,'08-01-08','08/1/9');
+INSERT IGNORE INTO t2 VALUES(1900,2156,'08-01-06','08/01/07');
+INSERT IGNORE INTO t3 VALUES('1900','2156','08-01-08','08/1/9');
+INSERT IGNORE INTO t4 VALUES('1900','2156','08-01-08','08/1/9'),(1900,2156,'08-01-08','08/1/9'),(0,00,'08-01-08','08/1/9'),(000,000,'08-01-08','08/1/9'),('-20','100','08-01-08','08/1/9'),(-20,100,'08-01-08','08/1/9');
# Insert empty string '', would be converted to zero
-INSERT INTO t1 VALUES('','','08-01-04','08/01/05') /* Inserts zero dates for '' strings */;
+INSERT IGNORE INTO t1 VALUES('','','08-01-04','08/01/05') /* Inserts zero dates for '' strings */;
# Insert non-date value(absurd values), would be converted to zero
-INSERT INTO t4 VALUES('abcd','abcd','08-01-10','08/01/11'),(1234,1234,'08-01-12','08/01/13') /* Inserts zero dates for absurd dates */;
+INSERT IGNORE INTO t4 VALUES('abcd','abcd','08-01-10','08/01/11'),(1234,1234,'08-01-12','08/01/13') /* Inserts zero dates for absurd dates */;
# Insert duplicates for parts of the clustered key/unique index
INSERT INTO t2 VALUES('20','30','98-12-16','98.12.16 11:30:45'),('40','20','98-12-15','98.12.15 11:30:45');
@@ -1491,9 +1491,9 @@ DROP TABLE t5;
# Test 'INSERT SET'
INSERT INTO t1 SET c1='00';
-INSERT INTO t2 SET c1=69;
+INSERT IGNORE INTO t2 SET c1=69;
INSERT INTO t3 SET c1=70;
-INSERT INTO t4 SET c2=99;
+INSERT IGNORE INTO t4 SET c2=99;
--sorted_result
SELECT * FROM t1 WHERE c1=0;
--sorted_result
diff --git a/mysql-test/suite/engines/iuds/t/strings_update_delete.test b/mysql-test/suite/engines/iuds/t/strings_update_delete.test
index 2099869e801..736439ca4b7 100644
--- a/mysql-test/suite/engines/iuds/t/strings_update_delete.test
+++ b/mysql-test/suite/engines/iuds/t/strings_update_delete.test
@@ -79,7 +79,7 @@ DROP TABLE t3,t4,t5;
CREATE TABLE t6 (a char(2) not null primary key, b varchar(20) not null, key (b));
CREATE TABLE t7 (a char(2) not null primary key, b varchar(20) not null, key (b));
INSERT INTO t6 values ('AB','MySQLAB'),('JA','Sun Microsystems'),('MS','Microsoft'),('IB','IBM- Inc.'),('GO','Google Inc.');
-INSERT INTO t7 values ('AB','Sweden'),('JA','USA'),('MS','United States of Amercica'),('IB','North America'),('GO','South America');
+INSERT IGNORE INTO t7 values ('AB','Sweden'),('JA','USA'),('MS','United States of Amercica'),('IB','North America'),('GO','South America');
update t6,t7 set t6.a=LCASE(t6.a);
--sorted_result
select * from t6;
@@ -117,22 +117,23 @@ CREATE TABLE t16 (c1 SET('a', 'b', 'c', 'd', 'e'));
eval INSERT INTO t16 VALUES (('d,a,d,d'));
--sorted_result
SELECT c1 FROM t16;
-eval INSERT INTO t16 (c1) VALUES ('a,b,d'),('d,A ,b');
+eval INSERT IGNORE INTO t16 (c1) VALUES ('a,b,d'),('d,A ,b');
--sorted_result
SELECT c1 FROM t16;
#--warning WARN_DATA_TRUNCATED
-eval INSERT INTO t16 (c1) VALUES ('f,a,b');
+eval INSERT IGNORE INTO t16 (c1) VALUES ('f,a,b');
SHOW WARNINGS;
--sorted_result
SELECT c1 FROM t16;
#--warning ER_DUPLICATED_VALUE_IN_TYPE
+SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
CREATE TABLE t17 (c1 SET('a','b','a','b'));
SHOW WARNINGS;
# Tests for ENUM datatype
# Invalid ENUM value insert behavior
CREATE TABLE t18 (c1 CHAR(4),c2 enum('SMALL','MEDIUM','LARGE','VERY LARGE'));
eval INSERT INTO t18 VALUES('SIZE', 'SMALL');
-eval INSERT INTO t18 VALUES('SIZE', 'SMALL1');
+eval INSERT IGNORE INTO t18 VALUES('SIZE', 'SMALL1');
--sorted_result
SELECT * FROM t18 WHERE c2=0;
EXPLAIN SELECT * FROM t18 WHERE c2=0;
diff --git a/mysql-test/suite/engines/iuds/t/type_bit_iuds.test b/mysql-test/suite/engines/iuds/t/type_bit_iuds.test
index 88418decfad..8f48d50fad0 100644
--- a/mysql-test/suite/engines/iuds/t/type_bit_iuds.test
+++ b/mysql-test/suite/engines/iuds/t/type_bit_iuds.test
@@ -72,7 +72,7 @@ ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(0) NOT NULL PRIMARY KEY, c2 BIT(0));
CREATE TABLE t6(c1 BIT(0), c2 BIT(0));
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
--sorted_result
SELECT HEX(c1),HEX(c2) FROM t5;
@@ -147,7 +147,7 @@ SELECT hex(c1),hex(c2) FROM t5 WHERE c1 IS NOT NULL ORDER BY c1 DESC ;
SELECT hex(c1),hex(c2) FROM t5 WHERE c1 IS NOT NULL ORDER BY c1 DESC LIMIT 2 ;
#Inserting different charachers
CREATE TABLE t7(c1 BIT(0));
-INSERT INTO t7 VALUES('a'),('A'),('z'),('Z'),('!'),('`'),('@'),('#'),('~'),('$'),('%'),('^'),('&'),('*'),('('),(')'),('-'),('_'),('+'),('='),('1'),('9');
+INSERT IGNORE INTO t7 VALUES('a'),('A'),('z'),('Z'),('!'),('`'),('@'),('#'),('~'),('$'),('%'),('^'),('&'),('*'),('('),(')'),('-'),('_'),('+'),('='),('1'),('9');
--sorted_result
SELECT * FROM t7;
############# UPDATE ###########
@@ -157,7 +157,7 @@ UPDATE t6 SET c1='10' WHERE c2 > 100 ORDER BY c2 LIMIT 1;
# Update with arithmetic operations
-UPDATE t6 SET c1=c2+c1 WHERE c2 < 100;
+UPDATE IGNORE t6 SET c1=c2+c1 WHERE c2 < 100;
UPDATE t6 SET c2=c2+100 WHERE c1 >=100 ORDER BY c1 LIMIT 4;
@@ -177,7 +177,7 @@ UPDATE t6 SET c2=123 WHERE c1 IN (30,b'101',88);
# Update outside range would be clipped to closest endpoints
-UPDATE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
+UPDATE IGNORE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
UPDATE t6 SET c2=-1 WHERE c1=94;
@@ -205,7 +205,7 @@ SELECT hex(c1),hex(c2) FROM t5;
TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
-INSERT INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
+INSERT IGNORE INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
# Update using Const
# EXPLAIN SELECT * FROM t5 WHERE c1=6 AND c2=6;
@@ -220,14 +220,14 @@ UPDATE t5 SET c2=13 where c1 BETWEEN 5 AND 9;
SELECT hex(c1),hex(c2) FROM t5;
# EXPLAIN SELECT * FROM t5 WHERE c1 IN (b'001',b'101',b'111');
--disable_warnings
-UPDATE t5 SET c2=c2+10 WHERE c1 IN (b'001',b'101',b'111');
+UPDATE IGNORE t5 SET c2=c2+10 WHERE c1 IN (b'001',b'101',b'111');
--enable_warnings
--sorted_result
SELECT hex(c1),hex(c2) FROM t5;
# Update using eq_ref
# EXPLAIN SELECT * FROM t5,t6 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
-UPDATE t5,t6 SET t5.c2=t6.c1+t6.c2 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
+UPDATE IGNORE t5,t6 SET t5.c2=t6.c1+t6.c2 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
############# DELETE ###########
@@ -235,7 +235,7 @@ TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
# Delete by order by limit
DELETE FROM t6 WHERE c2 > 100 ORDER BY c2 LIMIT 1;
@@ -263,7 +263,7 @@ SELECT hex(c1),hex(c2) FROM t5;
TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
-INSERT INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
+INSERT IGNORE INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
# Update using Const
# EXPLAIN SELECT * FROM t5 WHERE c1=6 AND c2=6;
@@ -312,14 +312,14 @@ let $STR2= query_get_value(select @v3 as I,I,1);
eval INSERT INTO t1 VALUES (b'$STR2');
set @v3=repeat('10',@v2);
let $STR3= query_get_value(select @v3 as I,I,1);
-eval INSERT INTO t1 VALUES (b'$STR3');
+eval INSERT IGNORE INTO t1 VALUES (b'$STR3');
set @v3=repeat('1',@v1);
set @v4=repeat('01',@v2);
set @v5=repeat('10',@v2);
let $STR0= query_get_value(select @v3 as I,I,1);
let $STR2= query_get_value(select @v4 as I,I,1);
let $STR3= query_get_value(select @v5 as I,I,1);
-eval INSERT INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
+eval INSERT IGNORE INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
dec $i;
}
INSERT INTO t1 VALUES (b'0');
@@ -358,7 +358,7 @@ ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(1) NOT NULL PRIMARY KEY, c2 BIT(1));
CREATE TABLE t6(c1 BIT(1), c2 BIT(1));
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
--sorted_result
SELECT HEX(c1),HEX(c2) FROM t5;
@@ -433,7 +433,7 @@ SELECT hex(c1),hex(c2) FROM t5 WHERE c1 IS NOT NULL ORDER BY c1 DESC ;
SELECT hex(c1),hex(c2) FROM t5 WHERE c1 IS NOT NULL ORDER BY c1 DESC LIMIT 2 ;
#Inserting different charachers
CREATE TABLE t7(c1 BIT(1));
-INSERT INTO t7 VALUES('a'),('A'),('z'),('Z'),('!'),('`'),('@'),('#'),('~'),('$'),('%'),('^'),('&'),('*'),('('),(')'),('-'),('_'),('+'),('='),('1'),('9');
+INSERT IGNORE INTO t7 VALUES('a'),('A'),('z'),('Z'),('!'),('`'),('@'),('#'),('~'),('$'),('%'),('^'),('&'),('*'),('('),(')'),('-'),('_'),('+'),('='),('1'),('9');
--sorted_result
SELECT * FROM t7;
############# UPDATE ###########
@@ -443,7 +443,7 @@ UPDATE t6 SET c1='10' WHERE c2 > 100 ORDER BY c2 LIMIT 1;
# Update with arithmetic operations
-UPDATE t6 SET c1=c2+c1 WHERE c2 < 100;
+UPDATE IGNORE t6 SET c1=c2+c1 WHERE c2 < 100;
UPDATE t6 SET c2=c2+100 WHERE c1 >=100 ORDER BY c1 LIMIT 4;
@@ -463,7 +463,7 @@ UPDATE t6 SET c2=123 WHERE c1 IN (30,b'101',88);
# Update outside range would be clipped to closest endpoints
-UPDATE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
+UPDATE IGNORE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
UPDATE t6 SET c2=-1 WHERE c1=94;
@@ -491,7 +491,7 @@ SELECT hex(c1),hex(c2) FROM t5;
TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
-INSERT INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
+INSERT IGNORE INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
# Update using Const
# EXPLAIN SELECT * FROM t5 WHERE c1=6 AND c2=6;
@@ -506,14 +506,14 @@ UPDATE t5 SET c2=13 where c1 BETWEEN 5 AND 9;
SELECT hex(c1),hex(c2) FROM t5;
# EXPLAIN SELECT * FROM t5 WHERE c1 IN (b'001',b'101',b'111');
--disable_warnings
-UPDATE t5 SET c2=c2+10 WHERE c1 IN (b'001',b'101',b'111');
+UPDATE IGNORE t5 SET c2=c2+10 WHERE c1 IN (b'001',b'101',b'111');
--enable_warnings
--sorted_result
SELECT hex(c1),hex(c2) FROM t5;
# Update using eq_ref
# EXPLAIN SELECT * FROM t5,t6 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
-UPDATE t5,t6 SET t5.c2=t6.c1+t6.c2 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
+UPDATE IGNORE t5,t6 SET t5.c2=t6.c1+t6.c2 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
############# DELETE ###########
@@ -521,7 +521,7 @@ TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
# Delete by order by limit
DELETE FROM t6 WHERE c2 > 100 ORDER BY c2 LIMIT 1;
@@ -549,7 +549,7 @@ SELECT hex(c1),hex(c2) FROM t5;
TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
-INSERT INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
+INSERT IGNORE INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
# Update using Const
# EXPLAIN SELECT * FROM t5 WHERE c1=6 AND c2=6;
@@ -605,7 +605,7 @@ set @v5=repeat('10',@v2);
let $STR0= query_get_value(select @v3 as I,I,1);
let $STR2= query_get_value(select @v4 as I,I,1);
let $STR3= query_get_value(select @v5 as I,I,1);
-eval INSERT INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
+eval INSERT IGNORE INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
dec $i;
}
INSERT INTO t1 VALUES (b'0');
@@ -644,7 +644,7 @@ ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(2) NOT NULL PRIMARY KEY, c2 BIT(2));
CREATE TABLE t6(c1 BIT(2), c2 BIT(2));
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
--sorted_result
SELECT HEX(c1),HEX(c2) FROM t5;
@@ -719,7 +719,7 @@ SELECT hex(c1),hex(c2) FROM t5 WHERE c1 IS NOT NULL ORDER BY c1 DESC ;
SELECT hex(c1),hex(c2) FROM t5 WHERE c1 IS NOT NULL ORDER BY c1 DESC LIMIT 2 ;
#Inserting different charachers
CREATE TABLE t7(c1 BIT(2));
-INSERT INTO t7 VALUES('a'),('A'),('z'),('Z'),('!'),('`'),('@'),('#'),('~'),('$'),('%'),('^'),('&'),('*'),('('),(')'),('-'),('_'),('+'),('='),('1'),('9');
+INSERT IGNORE INTO t7 VALUES('a'),('A'),('z'),('Z'),('!'),('`'),('@'),('#'),('~'),('$'),('%'),('^'),('&'),('*'),('('),(')'),('-'),('_'),('+'),('='),('1'),('9');
--sorted_result
SELECT * FROM t7;
############# UPDATE ###########
@@ -729,7 +729,7 @@ UPDATE t6 SET c1='10' WHERE c2 > 100 ORDER BY c2 LIMIT 1;
# Update with arithmetic operations
-UPDATE t6 SET c1=c2+c1 WHERE c2 < 100;
+UPDATE IGNORE t6 SET c1=c2+c1 WHERE c2 < 100;
UPDATE t6 SET c2=c2+100 WHERE c1 >=100 ORDER BY c1 LIMIT 4;
@@ -749,7 +749,7 @@ UPDATE t6 SET c2=123 WHERE c1 IN (30,b'101',88);
# Update outside range would be clipped to closest endpoints
-UPDATE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
+UPDATE IGNORE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
UPDATE t6 SET c2=-1 WHERE c1=94;
@@ -777,7 +777,7 @@ SELECT hex(c1),hex(c2) FROM t5;
TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
-INSERT INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
+INSERT IGNORE INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
# Update using Const
# EXPLAIN SELECT * FROM t5 WHERE c1=6 AND c2=6;
@@ -792,14 +792,14 @@ UPDATE t5 SET c2=13 where c1 BETWEEN 5 AND 9;
SELECT hex(c1),hex(c2) FROM t5;
# EXPLAIN SELECT * FROM t5 WHERE c1 IN (b'001',b'101',b'111');
--disable_warnings
-UPDATE t5 SET c2=c2+10 WHERE c1 IN (b'001',b'101',b'111');
+UPDATE IGNORE t5 SET c2=c2+10 WHERE c1 IN (b'001',b'101',b'111');
--enable_warnings
--sorted_result
SELECT hex(c1),hex(c2) FROM t5;
# Update using eq_ref
# EXPLAIN SELECT * FROM t5,t6 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
-UPDATE t5,t6 SET t5.c2=t6.c1+t6.c2 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
+UPDATE IGNORE t5,t6 SET t5.c2=t6.c1+t6.c2 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
############# DELETE ###########
@@ -807,7 +807,7 @@ TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
# Delete by order by limit
DELETE FROM t6 WHERE c2 > 100 ORDER BY c2 LIMIT 1;
@@ -835,7 +835,7 @@ SELECT hex(c1),hex(c2) FROM t5;
TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
-INSERT INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
+INSERT IGNORE INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
# Update using Const
# EXPLAIN SELECT * FROM t5 WHERE c1=6 AND c2=6;
@@ -891,7 +891,7 @@ set @v5=repeat('10',@v2);
let $STR0= query_get_value(select @v3 as I,I,1);
let $STR2= query_get_value(select @v4 as I,I,1);
let $STR3= query_get_value(select @v5 as I,I,1);
-eval INSERT INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
+eval INSERT IGNORE INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
dec $i;
}
INSERT INTO t1 VALUES (b'0');
@@ -930,7 +930,7 @@ ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(4) NOT NULL PRIMARY KEY, c2 BIT(4));
CREATE TABLE t6(c1 BIT(4), c2 BIT(4));
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
--sorted_result
SELECT HEX(c1),HEX(c2) FROM t5;
@@ -1005,7 +1005,7 @@ SELECT hex(c1),hex(c2) FROM t5 WHERE c1 IS NOT NULL ORDER BY c1 DESC ;
SELECT hex(c1),hex(c2) FROM t5 WHERE c1 IS NOT NULL ORDER BY c1 DESC LIMIT 2 ;
#Inserting different charachers
CREATE TABLE t7(c1 BIT(4));
-INSERT INTO t7 VALUES('a'),('A'),('z'),('Z'),('!'),('`'),('@'),('#'),('~'),('$'),('%'),('^'),('&'),('*'),('('),(')'),('-'),('_'),('+'),('='),('1'),('9');
+INSERT IGNORE INTO t7 VALUES('a'),('A'),('z'),('Z'),('!'),('`'),('@'),('#'),('~'),('$'),('%'),('^'),('&'),('*'),('('),(')'),('-'),('_'),('+'),('='),('1'),('9');
--sorted_result
SELECT * FROM t7;
############# UPDATE ###########
@@ -1015,7 +1015,7 @@ UPDATE t6 SET c1='10' WHERE c2 > 100 ORDER BY c2 LIMIT 1;
# Update with arithmetic operations
-UPDATE t6 SET c1=c2+c1 WHERE c2 < 100;
+UPDATE IGNORE t6 SET c1=c2+c1 WHERE c2 < 100;
UPDATE t6 SET c2=c2+100 WHERE c1 >=100 ORDER BY c1 LIMIT 4;
@@ -1067,7 +1067,7 @@ INSERT INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,
# Update using Const
# EXPLAIN SELECT * FROM t5 WHERE c1=6 AND c2=6;
-UPDATE t5 SET c2='a' WHERE c1=6 AND c2=6;
+UPDATE IGNORE t5 SET c2='a' WHERE c1=6 AND c2=6;
--sorted_result
SELECT hex(c1),hex(c2) FROM t5;
@@ -1078,14 +1078,14 @@ UPDATE t5 SET c2=13 where c1 BETWEEN 5 AND 9;
SELECT hex(c1),hex(c2) FROM t5;
# EXPLAIN SELECT * FROM t5 WHERE c1 IN (b'001',b'101',b'111');
--disable_warnings
-UPDATE t5 SET c2=c2+10 WHERE c1 IN (b'001',b'101',b'111');
+UPDATE IGNORE t5 SET c2=c2+10 WHERE c1 IN (b'001',b'101',b'111');
--enable_warnings
--sorted_result
SELECT hex(c1),hex(c2) FROM t5;
# Update using eq_ref
# EXPLAIN SELECT * FROM t5,t6 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
-UPDATE t5,t6 SET t5.c2=t6.c1+t6.c2 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
+UPDATE IGNORE t5,t6 SET t5.c2=t6.c1+t6.c2 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
############# DELETE ###########
@@ -1093,7 +1093,7 @@ TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
# Delete by order by limit
DELETE FROM t6 WHERE c2 > 100 ORDER BY c2 LIMIT 1;
@@ -1177,7 +1177,7 @@ set @v5=repeat('10',@v2);
let $STR0= query_get_value(select @v3 as I,I,1);
let $STR2= query_get_value(select @v4 as I,I,1);
let $STR3= query_get_value(select @v5 as I,I,1);
-eval INSERT INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
+eval INSERT IGNORE INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
dec $i;
}
INSERT INTO t1 VALUES (b'0');
@@ -1216,7 +1216,7 @@ ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(8) NOT NULL PRIMARY KEY, c2 BIT(8));
CREATE TABLE t6(c1 BIT(8), c2 BIT(8));
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
--sorted_result
SELECT HEX(c1),HEX(c2) FROM t5;
@@ -1297,13 +1297,13 @@ SELECT * FROM t7;
############# UPDATE ###########
# Update order by limit
-UPDATE t6 SET c1='10' WHERE c2 > 100 ORDER BY c2 LIMIT 1;
+UPDATE IGNORE t6 SET c1='10' WHERE c2 > 100 ORDER BY c2 LIMIT 1;
# Update with arithmetic operations
UPDATE t6 SET c1=c2+c1 WHERE c2 < 100;
-UPDATE t6 SET c2=c2+100 WHERE c1 >=100 ORDER BY c1 LIMIT 4;
+UPDATE IGNORE t6 SET c2=c2+100 WHERE c1 >=100 ORDER BY c1 LIMIT 4;
# Update with NULL ( NULL to number & number to NULL)
@@ -1323,7 +1323,7 @@ UPDATE t6 SET c2=123 WHERE c1 IN (30,b'101',88);
# Update outside range would be clipped to closest endpoints
UPDATE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
-UPDATE t6 SET c2=-1 WHERE c1=94;
+UPDATE IGNORE t6 SET c2=-1 WHERE c1=94;
# Update ignore on bad null error
@@ -1339,7 +1339,7 @@ SET SQL_MODE=DEFAULT;
#Multi table update
--disable_warnings
-UPDATE t5,t6 SET t5.c2=t6.c1+t5.c1, t6.c2=t5.c1+t6.c1 WHERE t5.c1 > 100 OR t6.c2 > 100;
+UPDATE IGNORE t5,t6 SET t5.c2=t6.c1+t5.c1, t6.c2=t5.c1+t6.c1 WHERE t5.c1 > 100 OR t6.c2 > 100;
--enable_warnings
--sorted_result
SELECT hex(c1),hex(c2) FROM t5;
@@ -1379,7 +1379,7 @@ TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
# Delete by order by limit
DELETE FROM t6 WHERE c2 > 100 ORDER BY c2 LIMIT 1;
@@ -1463,7 +1463,7 @@ set @v5=repeat('10',@v2);
let $STR0= query_get_value(select @v3 as I,I,1);
let $STR2= query_get_value(select @v4 as I,I,1);
let $STR3= query_get_value(select @v5 as I,I,1);
-eval INSERT INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
+eval INSERT IGNORE INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
dec $i;
}
INSERT INTO t1 VALUES (b'0');
@@ -1609,7 +1609,7 @@ UPDATE t6 SET c2=123 WHERE c1 IN (30,b'101',88);
# Update outside range would be clipped to closest endpoints
UPDATE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
-UPDATE t6 SET c2=-1 WHERE c1=94;
+UPDATE IGNORE t6 SET c2=-1 WHERE c1=94;
# Update ignore on bad null error
@@ -1749,7 +1749,7 @@ set @v5=repeat('10',@v2);
let $STR0= query_get_value(select @v3 as I,I,1);
let $STR2= query_get_value(select @v4 as I,I,1);
let $STR3= query_get_value(select @v5 as I,I,1);
-eval INSERT INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
+eval INSERT IGNORE INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
dec $i;
}
INSERT INTO t1 VALUES (b'0');
@@ -1895,7 +1895,7 @@ UPDATE t6 SET c2=123 WHERE c1 IN (30,b'101',88);
# Update outside range would be clipped to closest endpoints
UPDATE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
-UPDATE t6 SET c2=-1 WHERE c1=94;
+UPDATE IGNORE t6 SET c2=-1 WHERE c1=94;
# Update ignore on bad null error
@@ -2035,7 +2035,7 @@ set @v5=repeat('10',@v2);
let $STR0= query_get_value(select @v3 as I,I,1);
let $STR2= query_get_value(select @v4 as I,I,1);
let $STR3= query_get_value(select @v5 as I,I,1);
-eval INSERT INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
+eval INSERT IGNORE INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
dec $i;
}
INSERT INTO t1 VALUES (b'0');
@@ -2360,7 +2360,7 @@ ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(0) NOT NULL PRIMARY KEY, c2 BIT(0));
CREATE TABLE t6(c1 BIT(0), c2 BIT(0));
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
--sorted_result
SELECT HEX(c1),HEX(c2) FROM t5;
@@ -2435,7 +2435,7 @@ SELECT hex(c1),hex(c2) FROM t5 WHERE c1 IS NOT NULL ORDER BY c1 DESC ;
SELECT hex(c1),hex(c2) FROM t5 WHERE c1 IS NOT NULL ORDER BY c1 DESC LIMIT 2 ;
#Inserting different charachers
CREATE TABLE t7(c1 BIT(0));
-INSERT INTO t7 VALUES('a'),('A'),('z'),('Z'),('!'),('`'),('@'),('#'),('~'),('$'),('%'),('^'),('&'),('*'),('('),(')'),('-'),('_'),('+'),('='),('1'),('9');
+INSERT IGNORE INTO t7 VALUES('a'),('A'),('z'),('Z'),('!'),('`'),('@'),('#'),('~'),('$'),('%'),('^'),('&'),('*'),('('),(')'),('-'),('_'),('+'),('='),('1'),('9');
--sorted_result
SELECT * FROM t7;
############# UPDATE ###########
@@ -2445,7 +2445,7 @@ UPDATE t6 SET c1='10' WHERE c2 > 100 ORDER BY c2 LIMIT 1;
# Update with arithmetic operations
-UPDATE t6 SET c1=c2+c1 WHERE c2 < 100;
+UPDATE IGNORE t6 SET c1=c2+c1 WHERE c2 < 100;
UPDATE t6 SET c2=c2+100 WHERE c1 >=100 ORDER BY c1 LIMIT 4;
@@ -2465,7 +2465,7 @@ UPDATE t6 SET c2=123 WHERE c1 IN (30,b'101',88);
# Update outside range would be clipped to closest endpoints
-UPDATE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
+UPDATE IGNORE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
UPDATE t6 SET c2=-1 WHERE c1=94;
@@ -2493,7 +2493,7 @@ SELECT hex(c1),hex(c2) FROM t5;
TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
-INSERT INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
+INSERT IGNORE INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
# Update using Const
# EXPLAIN SELECT * FROM t5 WHERE c1=6 AND c2=6;
@@ -2508,14 +2508,14 @@ UPDATE t5 SET c2=13 where c1 BETWEEN 5 AND 9;
SELECT hex(c1),hex(c2) FROM t5;
# EXPLAIN SELECT * FROM t5 WHERE c1 IN (b'001',b'101',b'111');
--disable_warnings
-UPDATE t5 SET c2=c2+10 WHERE c1 IN (b'001',b'101',b'111');
+UPDATE IGNORE t5 SET c2=c2+10 WHERE c1 IN (b'001',b'101',b'111');
--enable_warnings
--sorted_result
SELECT hex(c1),hex(c2) FROM t5;
# Update using eq_ref
# EXPLAIN SELECT * FROM t5,t6 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
-UPDATE t5,t6 SET t5.c2=t6.c1+t6.c2 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
+UPDATE IGNORE t5,t6 SET t5.c2=t6.c1+t6.c2 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
############# DELETE ###########
@@ -2523,7 +2523,7 @@ TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
# Delete by order by limit
DELETE FROM t6 WHERE c2 > 100 ORDER BY c2 LIMIT 1;
@@ -2551,7 +2551,7 @@ SELECT hex(c1),hex(c2) FROM t5;
TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
-INSERT INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
+INSERT IGNORE INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
# Update using Const
# EXPLAIN SELECT * FROM t5 WHERE c1=6 AND c2=6;
@@ -2600,14 +2600,14 @@ let $STR2= query_get_value(select @v3 as I,I,1);
eval INSERT INTO t1 VALUES (b'$STR2');
set @v3=repeat('10',@v2);
let $STR3= query_get_value(select @v3 as I,I,1);
-eval INSERT INTO t1 VALUES (b'$STR3');
+eval INSERT IGNORE INTO t1 VALUES (b'$STR3');
set @v3=repeat('1',@v1);
set @v4=repeat('01',@v2);
set @v5=repeat('10',@v2);
let $STR0= query_get_value(select @v3 as I,I,1);
let $STR2= query_get_value(select @v4 as I,I,1);
let $STR3= query_get_value(select @v5 as I,I,1);
-eval INSERT INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
+eval INSERT IGNORE INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
dec $i;
}
INSERT INTO t1 VALUES (b'1');
@@ -2646,7 +2646,7 @@ ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(1) NOT NULL PRIMARY KEY, c2 BIT(1));
CREATE TABLE t6(c1 BIT(1), c2 BIT(1));
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
--sorted_result
SELECT HEX(c1),HEX(c2) FROM t5;
@@ -2721,7 +2721,7 @@ SELECT hex(c1),hex(c2) FROM t5 WHERE c1 IS NOT NULL ORDER BY c1 DESC ;
SELECT hex(c1),hex(c2) FROM t5 WHERE c1 IS NOT NULL ORDER BY c1 DESC LIMIT 2 ;
#Inserting different charachers
CREATE TABLE t7(c1 BIT(1));
-INSERT INTO t7 VALUES('a'),('A'),('z'),('Z'),('!'),('`'),('@'),('#'),('~'),('$'),('%'),('^'),('&'),('*'),('('),(')'),('-'),('_'),('+'),('='),('1'),('9');
+INSERT IGNORE INTO t7 VALUES('a'),('A'),('z'),('Z'),('!'),('`'),('@'),('#'),('~'),('$'),('%'),('^'),('&'),('*'),('('),(')'),('-'),('_'),('+'),('='),('1'),('9');
--sorted_result
SELECT * FROM t7;
############# UPDATE ###########
@@ -2731,7 +2731,7 @@ UPDATE t6 SET c1='10' WHERE c2 > 100 ORDER BY c2 LIMIT 1;
# Update with arithmetic operations
-UPDATE t6 SET c1=c2+c1 WHERE c2 < 100;
+UPDATE IGNORE t6 SET c1=c2+c1 WHERE c2 < 100;
UPDATE t6 SET c2=c2+100 WHERE c1 >=100 ORDER BY c1 LIMIT 4;
@@ -2751,7 +2751,7 @@ UPDATE t6 SET c2=123 WHERE c1 IN (30,b'101',88);
# Update outside range would be clipped to closest endpoints
-UPDATE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
+UPDATE IGNORE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
UPDATE t6 SET c2=-1 WHERE c1=94;
@@ -2779,7 +2779,7 @@ SELECT hex(c1),hex(c2) FROM t5;
TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
-INSERT INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
+INSERT IGNORE INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
# Update using Const
# EXPLAIN SELECT * FROM t5 WHERE c1=6 AND c2=6;
@@ -2794,14 +2794,14 @@ UPDATE t5 SET c2=13 where c1 BETWEEN 5 AND 9;
SELECT hex(c1),hex(c2) FROM t5;
# EXPLAIN SELECT * FROM t5 WHERE c1 IN (b'001',b'101',b'111');
--disable_warnings
-UPDATE t5 SET c2=c2+10 WHERE c1 IN (b'001',b'101',b'111');
+UPDATE IGNORE t5 SET c2=c2+10 WHERE c1 IN (b'001',b'101',b'111');
--enable_warnings
--sorted_result
SELECT hex(c1),hex(c2) FROM t5;
# Update using eq_ref
# EXPLAIN SELECT * FROM t5,t6 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
-UPDATE t5,t6 SET t5.c2=t6.c1+t6.c2 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
+UPDATE IGNORE t5,t6 SET t5.c2=t6.c1+t6.c2 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
############# DELETE ###########
@@ -2809,7 +2809,7 @@ TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
# Delete by order by limit
DELETE FROM t6 WHERE c2 > 100 ORDER BY c2 LIMIT 1;
@@ -2837,7 +2837,7 @@ SELECT hex(c1),hex(c2) FROM t5;
TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
-INSERT INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
+INSERT IGNORE INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
# Update using Const
# EXPLAIN SELECT * FROM t5 WHERE c1=6 AND c2=6;
@@ -2893,7 +2893,7 @@ set @v5=repeat('10',@v2);
let $STR0= query_get_value(select @v3 as I,I,1);
let $STR2= query_get_value(select @v4 as I,I,1);
let $STR3= query_get_value(select @v5 as I,I,1);
-eval INSERT INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
+eval INSERT IGNORE INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
dec $i;
}
INSERT INTO t1 VALUES (b'1');
@@ -2932,7 +2932,7 @@ ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(2) NOT NULL PRIMARY KEY, c2 BIT(2));
CREATE TABLE t6(c1 BIT(2), c2 BIT(2));
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
--sorted_result
SELECT HEX(c1),HEX(c2) FROM t5;
@@ -3007,7 +3007,7 @@ SELECT hex(c1),hex(c2) FROM t5 WHERE c1 IS NOT NULL ORDER BY c1 DESC ;
SELECT hex(c1),hex(c2) FROM t5 WHERE c1 IS NOT NULL ORDER BY c1 DESC LIMIT 2 ;
#Inserting different charachers
CREATE TABLE t7(c1 BIT(2));
-INSERT INTO t7 VALUES('a'),('A'),('z'),('Z'),('!'),('`'),('@'),('#'),('~'),('$'),('%'),('^'),('&'),('*'),('('),(')'),('-'),('_'),('+'),('='),('1'),('9');
+INSERT IGNORE INTO t7 VALUES('a'),('A'),('z'),('Z'),('!'),('`'),('@'),('#'),('~'),('$'),('%'),('^'),('&'),('*'),('('),(')'),('-'),('_'),('+'),('='),('1'),('9');
--sorted_result
SELECT * FROM t7;
############# UPDATE ###########
@@ -3017,7 +3017,7 @@ UPDATE t6 SET c1='10' WHERE c2 > 100 ORDER BY c2 LIMIT 1;
# Update with arithmetic operations
-UPDATE t6 SET c1=c2+c1 WHERE c2 < 100;
+UPDATE IGNORE t6 SET c1=c2+c1 WHERE c2 < 100;
UPDATE t6 SET c2=c2+100 WHERE c1 >=100 ORDER BY c1 LIMIT 4;
@@ -3037,7 +3037,7 @@ UPDATE t6 SET c2=123 WHERE c1 IN (30,b'101',88);
# Update outside range would be clipped to closest endpoints
-UPDATE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
+UPDATE IGNORE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
UPDATE t6 SET c2=-1 WHERE c1=94;
@@ -3065,7 +3065,7 @@ SELECT hex(c1),hex(c2) FROM t5;
TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
-INSERT INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
+INSERT IGNORE INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
# Update using Const
# EXPLAIN SELECT * FROM t5 WHERE c1=6 AND c2=6;
@@ -3080,14 +3080,14 @@ UPDATE t5 SET c2=13 where c1 BETWEEN 5 AND 9;
SELECT hex(c1),hex(c2) FROM t5;
# EXPLAIN SELECT * FROM t5 WHERE c1 IN (b'001',b'101',b'111');
--disable_warnings
-UPDATE t5 SET c2=c2+10 WHERE c1 IN (b'001',b'101',b'111');
+UPDATE IGNORE t5 SET c2=c2+10 WHERE c1 IN (b'001',b'101',b'111');
--enable_warnings
--sorted_result
SELECT hex(c1),hex(c2) FROM t5;
# Update using eq_ref
# EXPLAIN SELECT * FROM t5,t6 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
-UPDATE t5,t6 SET t5.c2=t6.c1+t6.c2 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
+UPDATE IGNORE t5,t6 SET t5.c2=t6.c1+t6.c2 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
############# DELETE ###########
@@ -3095,7 +3095,7 @@ TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
# Delete by order by limit
DELETE FROM t6 WHERE c2 > 100 ORDER BY c2 LIMIT 1;
@@ -3123,7 +3123,7 @@ SELECT hex(c1),hex(c2) FROM t5;
TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
-INSERT INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
+INSERT IGNORE INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
# Update using Const
# EXPLAIN SELECT * FROM t5 WHERE c1=6 AND c2=6;
@@ -3179,7 +3179,7 @@ set @v5=repeat('10',@v2);
let $STR0= query_get_value(select @v3 as I,I,1);
let $STR2= query_get_value(select @v4 as I,I,1);
let $STR3= query_get_value(select @v5 as I,I,1);
-eval INSERT INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
+eval INSERT IGNORE INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
dec $i;
}
INSERT INTO t1 VALUES (b'1');
@@ -3218,7 +3218,7 @@ ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(4) NOT NULL PRIMARY KEY, c2 BIT(4));
CREATE TABLE t6(c1 BIT(4), c2 BIT(4));
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
--sorted_result
SELECT HEX(c1),HEX(c2) FROM t5;
@@ -3293,7 +3293,7 @@ SELECT hex(c1),hex(c2) FROM t5 WHERE c1 IS NOT NULL ORDER BY c1 DESC ;
SELECT hex(c1),hex(c2) FROM t5 WHERE c1 IS NOT NULL ORDER BY c1 DESC LIMIT 2 ;
#Inserting different charachers
CREATE TABLE t7(c1 BIT(4));
-INSERT INTO t7 VALUES('a'),('A'),('z'),('Z'),('!'),('`'),('@'),('#'),('~'),('$'),('%'),('^'),('&'),('*'),('('),(')'),('-'),('_'),('+'),('='),('1'),('9');
+INSERT IGNORE INTO t7 VALUES('a'),('A'),('z'),('Z'),('!'),('`'),('@'),('#'),('~'),('$'),('%'),('^'),('&'),('*'),('('),(')'),('-'),('_'),('+'),('='),('1'),('9');
--sorted_result
SELECT * FROM t7;
############# UPDATE ###########
@@ -3303,7 +3303,7 @@ UPDATE t6 SET c1='10' WHERE c2 > 100 ORDER BY c2 LIMIT 1;
# Update with arithmetic operations
-UPDATE t6 SET c1=c2+c1 WHERE c2 < 100;
+UPDATE IGNORE t6 SET c1=c2+c1 WHERE c2 < 100;
UPDATE t6 SET c2=c2+100 WHERE c1 >=100 ORDER BY c1 LIMIT 4;
@@ -3355,7 +3355,7 @@ INSERT INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,
# Update using Const
# EXPLAIN SELECT * FROM t5 WHERE c1=6 AND c2=6;
-UPDATE t5 SET c2='a' WHERE c1=6 AND c2=6;
+UPDATE IGNORE t5 SET c2='a' WHERE c1=6 AND c2=6;
--sorted_result
SELECT hex(c1),hex(c2) FROM t5;
@@ -3366,14 +3366,14 @@ UPDATE t5 SET c2=13 where c1 BETWEEN 5 AND 9;
SELECT hex(c1),hex(c2) FROM t5;
# EXPLAIN SELECT * FROM t5 WHERE c1 IN (b'001',b'101',b'111');
--disable_warnings
-UPDATE t5 SET c2=c2+10 WHERE c1 IN (b'001',b'101',b'111');
+UPDATE IGNORE t5 SET c2=c2+10 WHERE c1 IN (b'001',b'101',b'111');
--enable_warnings
--sorted_result
SELECT hex(c1),hex(c2) FROM t5;
# Update using eq_ref
# EXPLAIN SELECT * FROM t5,t6 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
-UPDATE t5,t6 SET t5.c2=t6.c1+t6.c2 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
+UPDATE IGNORE t5,t6 SET t5.c2=t6.c1+t6.c2 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
############# DELETE ###########
@@ -3381,7 +3381,7 @@ TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
# Delete by order by limit
DELETE FROM t6 WHERE c2 > 100 ORDER BY c2 LIMIT 1;
@@ -3465,7 +3465,7 @@ set @v5=repeat('10',@v2);
let $STR0= query_get_value(select @v3 as I,I,1);
let $STR2= query_get_value(select @v4 as I,I,1);
let $STR3= query_get_value(select @v5 as I,I,1);
-eval INSERT INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
+eval INSERT IGNORE INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
dec $i;
}
INSERT INTO t1 VALUES (b'1');
@@ -3504,7 +3504,7 @@ ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(8) NOT NULL PRIMARY KEY, c2 BIT(8));
CREATE TABLE t6(c1 BIT(8), c2 BIT(8));
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
--sorted_result
SELECT HEX(c1),HEX(c2) FROM t5;
@@ -3585,13 +3585,13 @@ SELECT * FROM t7;
############# UPDATE ###########
# Update order by limit
-UPDATE t6 SET c1='10' WHERE c2 > 100 ORDER BY c2 LIMIT 1;
+UPDATE IGNORE t6 SET c1='10' WHERE c2 > 100 ORDER BY c2 LIMIT 1;
# Update with arithmetic operations
UPDATE t6 SET c1=c2+c1 WHERE c2 < 100;
-UPDATE t6 SET c2=c2+100 WHERE c1 >=100 ORDER BY c1 LIMIT 4;
+UPDATE IGNORE t6 SET c2=c2+100 WHERE c1 >=100 ORDER BY c1 LIMIT 4;
# Update with NULL ( NULL to number & number to NULL)
@@ -3611,7 +3611,7 @@ UPDATE t6 SET c2=123 WHERE c1 IN (30,b'101',88);
# Update outside range would be clipped to closest endpoints
UPDATE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
-UPDATE t6 SET c2=-1 WHERE c1=94;
+UPDATE IGNORE t6 SET c2=-1 WHERE c1=94;
# Update ignore on bad null error
@@ -3627,7 +3627,7 @@ SET SQL_MODE=DEFAULT;
#Multi table update
--disable_warnings
-UPDATE t5,t6 SET t5.c2=t6.c1+t5.c1, t6.c2=t5.c1+t6.c1 WHERE t5.c1 > 100 OR t6.c2 > 100;
+UPDATE IGNORE t5,t6 SET t5.c2=t6.c1+t5.c1, t6.c2=t5.c1+t6.c1 WHERE t5.c1 > 100 OR t6.c2 > 100;
--enable_warnings
--sorted_result
SELECT hex(c1),hex(c2) FROM t5;
@@ -3667,7 +3667,7 @@ TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
# Delete by order by limit
DELETE FROM t6 WHERE c2 > 100 ORDER BY c2 LIMIT 1;
@@ -3751,7 +3751,7 @@ set @v5=repeat('10',@v2);
let $STR0= query_get_value(select @v3 as I,I,1);
let $STR2= query_get_value(select @v4 as I,I,1);
let $STR3= query_get_value(select @v5 as I,I,1);
-eval INSERT INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
+eval INSERT IGNORE INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
dec $i;
}
INSERT INTO t1 VALUES (b'1');
@@ -3897,7 +3897,7 @@ UPDATE t6 SET c2=123 WHERE c1 IN (30,b'101',88);
# Update outside range would be clipped to closest endpoints
UPDATE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
-UPDATE t6 SET c2=-1 WHERE c1=94;
+UPDATE IGNORE t6 SET c2=-1 WHERE c1=94;
# Update ignore on bad null error
@@ -4037,7 +4037,7 @@ set @v5=repeat('10',@v2);
let $STR0= query_get_value(select @v3 as I,I,1);
let $STR2= query_get_value(select @v4 as I,I,1);
let $STR3= query_get_value(select @v5 as I,I,1);
-eval INSERT INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
+eval INSERT IGNORE INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
dec $i;
}
INSERT INTO t1 VALUES (b'1');
@@ -4183,7 +4183,7 @@ UPDATE t6 SET c2=123 WHERE c1 IN (30,b'101',88);
# Update outside range would be clipped to closest endpoints
UPDATE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
-UPDATE t6 SET c2=-1 WHERE c1=94;
+UPDATE IGNORE t6 SET c2=-1 WHERE c1=94;
# Update ignore on bad null error
@@ -4323,7 +4323,7 @@ set @v5=repeat('10',@v2);
let $STR0= query_get_value(select @v3 as I,I,1);
let $STR2= query_get_value(select @v4 as I,I,1);
let $STR3= query_get_value(select @v5 as I,I,1);
-eval INSERT INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
+eval INSERT IGNORE INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
dec $i;
}
INSERT INTO t1 VALUES (b'1');
@@ -4612,8 +4612,8 @@ let $STR3= query_get_value(select @v5 as I,I,1);
eval INSERT INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
dec $i;
}
-INSERT INTO t1 VALUES (b'10');
-INSERT INTO t2 VALUES (b'10', b'10', b'10');
+INSERT IGNORE INTO t1 VALUES (b'10');
+INSERT IGNORE INTO t2 VALUES (b'10', b'10', b'10');
--sorted_result
SELECT HEX(c1) FROM t1;
--sorted_result
@@ -4648,7 +4648,7 @@ ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(0) NOT NULL PRIMARY KEY, c2 BIT(0));
CREATE TABLE t6(c1 BIT(0), c2 BIT(0));
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
--sorted_result
SELECT HEX(c1),HEX(c2) FROM t5;
@@ -4723,7 +4723,7 @@ SELECT hex(c1),hex(c2) FROM t5 WHERE c1 IS NOT NULL ORDER BY c1 DESC ;
SELECT hex(c1),hex(c2) FROM t5 WHERE c1 IS NOT NULL ORDER BY c1 DESC LIMIT 2 ;
#Inserting different charachers
CREATE TABLE t7(c1 BIT(0));
-INSERT INTO t7 VALUES('a'),('A'),('z'),('Z'),('!'),('`'),('@'),('#'),('~'),('$'),('%'),('^'),('&'),('*'),('('),(')'),('-'),('_'),('+'),('='),('1'),('9');
+INSERT IGNORE INTO t7 VALUES('a'),('A'),('z'),('Z'),('!'),('`'),('@'),('#'),('~'),('$'),('%'),('^'),('&'),('*'),('('),(')'),('-'),('_'),('+'),('='),('1'),('9');
--sorted_result
SELECT * FROM t7;
############# UPDATE ###########
@@ -4733,7 +4733,7 @@ UPDATE t6 SET c1='10' WHERE c2 > 100 ORDER BY c2 LIMIT 1;
# Update with arithmetic operations
-UPDATE t6 SET c1=c2+c1 WHERE c2 < 100;
+UPDATE IGNORE t6 SET c1=c2+c1 WHERE c2 < 100;
UPDATE t6 SET c2=c2+100 WHERE c1 >=100 ORDER BY c1 LIMIT 4;
@@ -4753,7 +4753,7 @@ UPDATE t6 SET c2=123 WHERE c1 IN (30,b'101',88);
# Update outside range would be clipped to closest endpoints
-UPDATE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
+UPDATE IGNORE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
UPDATE t6 SET c2=-1 WHERE c1=94;
@@ -4781,7 +4781,7 @@ SELECT hex(c1),hex(c2) FROM t5;
TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
-INSERT INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
+INSERT IGNORE INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
# Update using Const
# EXPLAIN SELECT * FROM t5 WHERE c1=6 AND c2=6;
@@ -4796,14 +4796,14 @@ UPDATE t5 SET c2=13 where c1 BETWEEN 5 AND 9;
SELECT hex(c1),hex(c2) FROM t5;
# EXPLAIN SELECT * FROM t5 WHERE c1 IN (b'001',b'101',b'111');
--disable_warnings
-UPDATE t5 SET c2=c2+10 WHERE c1 IN (b'001',b'101',b'111');
+UPDATE IGNORE t5 SET c2=c2+10 WHERE c1 IN (b'001',b'101',b'111');
--enable_warnings
--sorted_result
SELECT hex(c1),hex(c2) FROM t5;
# Update using eq_ref
# EXPLAIN SELECT * FROM t5,t6 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
-UPDATE t5,t6 SET t5.c2=t6.c1+t6.c2 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
+UPDATE IGNORE t5,t6 SET t5.c2=t6.c1+t6.c2 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
############# DELETE ###########
@@ -4811,7 +4811,7 @@ TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
# Delete by order by limit
DELETE FROM t6 WHERE c2 > 100 ORDER BY c2 LIMIT 1;
@@ -4839,7 +4839,7 @@ SELECT hex(c1),hex(c2) FROM t5;
TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
-INSERT INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
+INSERT IGNORE INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
# Update using Const
# EXPLAIN SELECT * FROM t5 WHERE c1=6 AND c2=6;
@@ -4888,18 +4888,18 @@ let $STR2= query_get_value(select @v3 as I,I,1);
eval INSERT INTO t1 VALUES (b'$STR2');
set @v3=repeat('10',@v2);
let $STR3= query_get_value(select @v3 as I,I,1);
-eval INSERT INTO t1 VALUES (b'$STR3');
+eval INSERT IGNORE INTO t1 VALUES (b'$STR3');
set @v3=repeat('1',@v1);
set @v4=repeat('01',@v2);
set @v5=repeat('10',@v2);
let $STR0= query_get_value(select @v3 as I,I,1);
let $STR2= query_get_value(select @v4 as I,I,1);
let $STR3= query_get_value(select @v5 as I,I,1);
-eval INSERT INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
+eval INSERT IGNORE INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
dec $i;
}
-INSERT INTO t1 VALUES (b'10');
-INSERT INTO t2 VALUES (b'10', b'10', b'10');
+INSERT IGNORE INTO t1 VALUES (b'10');
+INSERT IGNORE INTO t2 VALUES (b'10', b'10', b'10');
--sorted_result
SELECT HEX(c1) FROM t1;
--sorted_result
@@ -4934,7 +4934,7 @@ ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(1) NOT NULL PRIMARY KEY, c2 BIT(1));
CREATE TABLE t6(c1 BIT(1), c2 BIT(1));
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
--sorted_result
SELECT HEX(c1),HEX(c2) FROM t5;
@@ -5009,7 +5009,7 @@ SELECT hex(c1),hex(c2) FROM t5 WHERE c1 IS NOT NULL ORDER BY c1 DESC ;
SELECT hex(c1),hex(c2) FROM t5 WHERE c1 IS NOT NULL ORDER BY c1 DESC LIMIT 2 ;
#Inserting different charachers
CREATE TABLE t7(c1 BIT(1));
-INSERT INTO t7 VALUES('a'),('A'),('z'),('Z'),('!'),('`'),('@'),('#'),('~'),('$'),('%'),('^'),('&'),('*'),('('),(')'),('-'),('_'),('+'),('='),('1'),('9');
+INSERT IGNORE INTO t7 VALUES('a'),('A'),('z'),('Z'),('!'),('`'),('@'),('#'),('~'),('$'),('%'),('^'),('&'),('*'),('('),(')'),('-'),('_'),('+'),('='),('1'),('9');
--sorted_result
SELECT * FROM t7;
############# UPDATE ###########
@@ -5019,7 +5019,7 @@ UPDATE t6 SET c1='10' WHERE c2 > 100 ORDER BY c2 LIMIT 1;
# Update with arithmetic operations
-UPDATE t6 SET c1=c2+c1 WHERE c2 < 100;
+UPDATE IGNORE t6 SET c1=c2+c1 WHERE c2 < 100;
UPDATE t6 SET c2=c2+100 WHERE c1 >=100 ORDER BY c1 LIMIT 4;
@@ -5039,7 +5039,7 @@ UPDATE t6 SET c2=123 WHERE c1 IN (30,b'101',88);
# Update outside range would be clipped to closest endpoints
-UPDATE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
+UPDATE IGNORE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
UPDATE t6 SET c2=-1 WHERE c1=94;
@@ -5067,7 +5067,7 @@ SELECT hex(c1),hex(c2) FROM t5;
TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
-INSERT INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
+INSERT IGNORE INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
# Update using Const
# EXPLAIN SELECT * FROM t5 WHERE c1=6 AND c2=6;
@@ -5082,14 +5082,14 @@ UPDATE t5 SET c2=13 where c1 BETWEEN 5 AND 9;
SELECT hex(c1),hex(c2) FROM t5;
# EXPLAIN SELECT * FROM t5 WHERE c1 IN (b'001',b'101',b'111');
--disable_warnings
-UPDATE t5 SET c2=c2+10 WHERE c1 IN (b'001',b'101',b'111');
+UPDATE IGNORE t5 SET c2=c2+10 WHERE c1 IN (b'001',b'101',b'111');
--enable_warnings
--sorted_result
SELECT hex(c1),hex(c2) FROM t5;
# Update using eq_ref
# EXPLAIN SELECT * FROM t5,t6 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
-UPDATE t5,t6 SET t5.c2=t6.c1+t6.c2 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
+UPDATE IGNORE t5,t6 SET t5.c2=t6.c1+t6.c2 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
############# DELETE ###########
@@ -5097,7 +5097,7 @@ TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
# Delete by order by limit
DELETE FROM t6 WHERE c2 > 100 ORDER BY c2 LIMIT 1;
@@ -5125,7 +5125,7 @@ SELECT hex(c1),hex(c2) FROM t5;
TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
-INSERT INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
+INSERT IGNORE INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
# Update using Const
# EXPLAIN SELECT * FROM t5 WHERE c1=6 AND c2=6;
@@ -5181,7 +5181,7 @@ set @v5=repeat('10',@v2);
let $STR0= query_get_value(select @v3 as I,I,1);
let $STR2= query_get_value(select @v4 as I,I,1);
let $STR3= query_get_value(select @v5 as I,I,1);
-eval INSERT INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
+eval INSERT IGNORE INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
dec $i;
}
INSERT INTO t1 VALUES (b'10');
@@ -5220,7 +5220,7 @@ ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(2) NOT NULL PRIMARY KEY, c2 BIT(2));
CREATE TABLE t6(c1 BIT(2), c2 BIT(2));
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
--sorted_result
SELECT HEX(c1),HEX(c2) FROM t5;
@@ -5295,7 +5295,7 @@ SELECT hex(c1),hex(c2) FROM t5 WHERE c1 IS NOT NULL ORDER BY c1 DESC ;
SELECT hex(c1),hex(c2) FROM t5 WHERE c1 IS NOT NULL ORDER BY c1 DESC LIMIT 2 ;
#Inserting different charachers
CREATE TABLE t7(c1 BIT(2));
-INSERT INTO t7 VALUES('a'),('A'),('z'),('Z'),('!'),('`'),('@'),('#'),('~'),('$'),('%'),('^'),('&'),('*'),('('),(')'),('-'),('_'),('+'),('='),('1'),('9');
+INSERT IGNORE INTO t7 VALUES('a'),('A'),('z'),('Z'),('!'),('`'),('@'),('#'),('~'),('$'),('%'),('^'),('&'),('*'),('('),(')'),('-'),('_'),('+'),('='),('1'),('9');
--sorted_result
SELECT * FROM t7;
############# UPDATE ###########
@@ -5305,7 +5305,7 @@ UPDATE t6 SET c1='10' WHERE c2 > 100 ORDER BY c2 LIMIT 1;
# Update with arithmetic operations
-UPDATE t6 SET c1=c2+c1 WHERE c2 < 100;
+UPDATE IGNORE t6 SET c1=c2+c1 WHERE c2 < 100;
UPDATE t6 SET c2=c2+100 WHERE c1 >=100 ORDER BY c1 LIMIT 4;
@@ -5325,7 +5325,7 @@ UPDATE t6 SET c2=123 WHERE c1 IN (30,b'101',88);
# Update outside range would be clipped to closest endpoints
-UPDATE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
+UPDATE IGNORE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
UPDATE t6 SET c2=-1 WHERE c1=94;
@@ -5353,7 +5353,7 @@ SELECT hex(c1),hex(c2) FROM t5;
TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
-INSERT INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
+INSERT IGNORE INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
# Update using Const
# EXPLAIN SELECT * FROM t5 WHERE c1=6 AND c2=6;
@@ -5368,14 +5368,14 @@ UPDATE t5 SET c2=13 where c1 BETWEEN 5 AND 9;
SELECT hex(c1),hex(c2) FROM t5;
# EXPLAIN SELECT * FROM t5 WHERE c1 IN (b'001',b'101',b'111');
--disable_warnings
-UPDATE t5 SET c2=c2+10 WHERE c1 IN (b'001',b'101',b'111');
+UPDATE IGNORE t5 SET c2=c2+10 WHERE c1 IN (b'001',b'101',b'111');
--enable_warnings
--sorted_result
SELECT hex(c1),hex(c2) FROM t5;
# Update using eq_ref
# EXPLAIN SELECT * FROM t5,t6 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
-UPDATE t5,t6 SET t5.c2=t6.c1+t6.c2 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
+UPDATE IGNORE t5,t6 SET t5.c2=t6.c1+t6.c2 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
############# DELETE ###########
@@ -5383,7 +5383,7 @@ TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
# Delete by order by limit
DELETE FROM t6 WHERE c2 > 100 ORDER BY c2 LIMIT 1;
@@ -5411,7 +5411,7 @@ SELECT hex(c1),hex(c2) FROM t5;
TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
-INSERT INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
+INSERT IGNORE INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
# Update using Const
# EXPLAIN SELECT * FROM t5 WHERE c1=6 AND c2=6;
@@ -5467,7 +5467,7 @@ set @v5=repeat('10',@v2);
let $STR0= query_get_value(select @v3 as I,I,1);
let $STR2= query_get_value(select @v4 as I,I,1);
let $STR3= query_get_value(select @v5 as I,I,1);
-eval INSERT INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
+eval INSERT IGNORE INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
dec $i;
}
INSERT INTO t1 VALUES (b'10');
@@ -5506,7 +5506,7 @@ ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(4) NOT NULL PRIMARY KEY, c2 BIT(4));
CREATE TABLE t6(c1 BIT(4), c2 BIT(4));
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
--sorted_result
SELECT HEX(c1),HEX(c2) FROM t5;
@@ -5581,7 +5581,7 @@ SELECT hex(c1),hex(c2) FROM t5 WHERE c1 IS NOT NULL ORDER BY c1 DESC ;
SELECT hex(c1),hex(c2) FROM t5 WHERE c1 IS NOT NULL ORDER BY c1 DESC LIMIT 2 ;
#Inserting different charachers
CREATE TABLE t7(c1 BIT(4));
-INSERT INTO t7 VALUES('a'),('A'),('z'),('Z'),('!'),('`'),('@'),('#'),('~'),('$'),('%'),('^'),('&'),('*'),('('),(')'),('-'),('_'),('+'),('='),('1'),('9');
+INSERT IGNORE INTO t7 VALUES('a'),('A'),('z'),('Z'),('!'),('`'),('@'),('#'),('~'),('$'),('%'),('^'),('&'),('*'),('('),(')'),('-'),('_'),('+'),('='),('1'),('9');
--sorted_result
SELECT * FROM t7;
############# UPDATE ###########
@@ -5591,7 +5591,7 @@ UPDATE t6 SET c1='10' WHERE c2 > 100 ORDER BY c2 LIMIT 1;
# Update with arithmetic operations
-UPDATE t6 SET c1=c2+c1 WHERE c2 < 100;
+UPDATE IGNORE t6 SET c1=c2+c1 WHERE c2 < 100;
UPDATE t6 SET c2=c2+100 WHERE c1 >=100 ORDER BY c1 LIMIT 4;
@@ -5643,7 +5643,7 @@ INSERT INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,
# Update using Const
# EXPLAIN SELECT * FROM t5 WHERE c1=6 AND c2=6;
-UPDATE t5 SET c2='a' WHERE c1=6 AND c2=6;
+UPDATE IGNORE t5 SET c2='a' WHERE c1=6 AND c2=6;
--sorted_result
SELECT hex(c1),hex(c2) FROM t5;
@@ -5654,14 +5654,14 @@ UPDATE t5 SET c2=13 where c1 BETWEEN 5 AND 9;
SELECT hex(c1),hex(c2) FROM t5;
# EXPLAIN SELECT * FROM t5 WHERE c1 IN (b'001',b'101',b'111');
--disable_warnings
-UPDATE t5 SET c2=c2+10 WHERE c1 IN (b'001',b'101',b'111');
+UPDATE IGNORE t5 SET c2=c2+10 WHERE c1 IN (b'001',b'101',b'111');
--enable_warnings
--sorted_result
SELECT hex(c1),hex(c2) FROM t5;
# Update using eq_ref
# EXPLAIN SELECT * FROM t5,t6 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
-UPDATE t5,t6 SET t5.c2=t6.c1+t6.c2 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
+UPDATE IGNORE t5,t6 SET t5.c2=t6.c1+t6.c2 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
############# DELETE ###########
@@ -5669,7 +5669,7 @@ TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
# Delete by order by limit
DELETE FROM t6 WHERE c2 > 100 ORDER BY c2 LIMIT 1;
@@ -5753,7 +5753,7 @@ set @v5=repeat('10',@v2);
let $STR0= query_get_value(select @v3 as I,I,1);
let $STR2= query_get_value(select @v4 as I,I,1);
let $STR3= query_get_value(select @v5 as I,I,1);
-eval INSERT INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
+eval INSERT IGNORE INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
dec $i;
}
INSERT INTO t1 VALUES (b'10');
@@ -5792,7 +5792,7 @@ ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(8) NOT NULL PRIMARY KEY, c2 BIT(8));
CREATE TABLE t6(c1 BIT(8), c2 BIT(8));
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
--sorted_result
SELECT HEX(c1),HEX(c2) FROM t5;
@@ -5873,13 +5873,13 @@ SELECT * FROM t7;
############# UPDATE ###########
# Update order by limit
-UPDATE t6 SET c1='10' WHERE c2 > 100 ORDER BY c2 LIMIT 1;
+UPDATE IGNORE t6 SET c1='10' WHERE c2 > 100 ORDER BY c2 LIMIT 1;
# Update with arithmetic operations
UPDATE t6 SET c1=c2+c1 WHERE c2 < 100;
-UPDATE t6 SET c2=c2+100 WHERE c1 >=100 ORDER BY c1 LIMIT 4;
+UPDATE IGNORE t6 SET c2=c2+100 WHERE c1 >=100 ORDER BY c1 LIMIT 4;
# Update with NULL ( NULL to number & number to NULL)
@@ -5899,7 +5899,7 @@ UPDATE t6 SET c2=123 WHERE c1 IN (30,b'101',88);
# Update outside range would be clipped to closest endpoints
UPDATE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
-UPDATE t6 SET c2=-1 WHERE c1=94;
+UPDATE IGNORE t6 SET c2=-1 WHERE c1=94;
# Update ignore on bad null error
@@ -5915,7 +5915,7 @@ SET SQL_MODE=DEFAULT;
#Multi table update
--disable_warnings
-UPDATE t5,t6 SET t5.c2=t6.c1+t5.c1, t6.c2=t5.c1+t6.c1 WHERE t5.c1 > 100 OR t6.c2 > 100;
+UPDATE IGNORE t5,t6 SET t5.c2=t6.c1+t5.c1, t6.c2=t5.c1+t6.c1 WHERE t5.c1 > 100 OR t6.c2 > 100;
--enable_warnings
--sorted_result
SELECT hex(c1),hex(c2) FROM t5;
@@ -5955,7 +5955,7 @@ TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
# Delete by order by limit
DELETE FROM t6 WHERE c2 > 100 ORDER BY c2 LIMIT 1;
@@ -6039,7 +6039,7 @@ set @v5=repeat('10',@v2);
let $STR0= query_get_value(select @v3 as I,I,1);
let $STR2= query_get_value(select @v4 as I,I,1);
let $STR3= query_get_value(select @v5 as I,I,1);
-eval INSERT INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
+eval INSERT IGNORE INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
dec $i;
}
INSERT INTO t1 VALUES (b'10');
@@ -6185,7 +6185,7 @@ UPDATE t6 SET c2=123 WHERE c1 IN (30,b'101',88);
# Update outside range would be clipped to closest endpoints
UPDATE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
-UPDATE t6 SET c2=-1 WHERE c1=94;
+UPDATE IGNORE t6 SET c2=-1 WHERE c1=94;
# Update ignore on bad null error
@@ -6325,7 +6325,7 @@ set @v5=repeat('10',@v2);
let $STR0= query_get_value(select @v3 as I,I,1);
let $STR2= query_get_value(select @v4 as I,I,1);
let $STR3= query_get_value(select @v5 as I,I,1);
-eval INSERT INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
+eval INSERT IGNORE INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
dec $i;
}
INSERT INTO t1 VALUES (b'10');
@@ -6471,7 +6471,7 @@ UPDATE t6 SET c2=123 WHERE c1 IN (30,b'101',88);
# Update outside range would be clipped to closest endpoints
UPDATE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
-UPDATE t6 SET c2=-1 WHERE c1=94;
+UPDATE IGNORE t6 SET c2=-1 WHERE c1=94;
# Update ignore on bad null error
@@ -6611,7 +6611,7 @@ set @v5=repeat('10',@v2);
let $STR0= query_get_value(select @v3 as I,I,1);
let $STR2= query_get_value(select @v4 as I,I,1);
let $STR3= query_get_value(select @v5 as I,I,1);
-eval INSERT INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
+eval INSERT IGNORE INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
dec $i;
}
INSERT INTO t1 VALUES (b'10');
@@ -6900,8 +6900,8 @@ let $STR3= query_get_value(select @v5 as I,I,1);
eval INSERT INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
dec $i;
}
-INSERT INTO t1 VALUES (b'1010');
-INSERT INTO t2 VALUES (b'1010', b'1010', b'1010');
+INSERT IGNORE INTO t1 VALUES (b'1010');
+INSERT IGNORE INTO t2 VALUES (b'1010', b'1010', b'1010');
--sorted_result
SELECT HEX(c1) FROM t1;
--sorted_result
@@ -6936,7 +6936,7 @@ ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(0) NOT NULL PRIMARY KEY, c2 BIT(0));
CREATE TABLE t6(c1 BIT(0), c2 BIT(0));
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
--sorted_result
SELECT HEX(c1),HEX(c2) FROM t5;
@@ -7011,7 +7011,7 @@ SELECT hex(c1),hex(c2) FROM t5 WHERE c1 IS NOT NULL ORDER BY c1 DESC ;
SELECT hex(c1),hex(c2) FROM t5 WHERE c1 IS NOT NULL ORDER BY c1 DESC LIMIT 2 ;
#Inserting different charachers
CREATE TABLE t7(c1 BIT(0));
-INSERT INTO t7 VALUES('a'),('A'),('z'),('Z'),('!'),('`'),('@'),('#'),('~'),('$'),('%'),('^'),('&'),('*'),('('),(')'),('-'),('_'),('+'),('='),('1'),('9');
+INSERT IGNORE INTO t7 VALUES('a'),('A'),('z'),('Z'),('!'),('`'),('@'),('#'),('~'),('$'),('%'),('^'),('&'),('*'),('('),(')'),('-'),('_'),('+'),('='),('1'),('9');
--sorted_result
SELECT * FROM t7;
############# UPDATE ###########
@@ -7021,7 +7021,7 @@ UPDATE t6 SET c1='10' WHERE c2 > 100 ORDER BY c2 LIMIT 1;
# Update with arithmetic operations
-UPDATE t6 SET c1=c2+c1 WHERE c2 < 100;
+UPDATE IGNORE t6 SET c1=c2+c1 WHERE c2 < 100;
UPDATE t6 SET c2=c2+100 WHERE c1 >=100 ORDER BY c1 LIMIT 4;
@@ -7041,7 +7041,7 @@ UPDATE t6 SET c2=123 WHERE c1 IN (30,b'101',88);
# Update outside range would be clipped to closest endpoints
-UPDATE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
+UPDATE IGNORE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
UPDATE t6 SET c2=-1 WHERE c1=94;
@@ -7069,7 +7069,7 @@ SELECT hex(c1),hex(c2) FROM t5;
TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
-INSERT INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
+INSERT IGNORE INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
# Update using Const
# EXPLAIN SELECT * FROM t5 WHERE c1=6 AND c2=6;
@@ -7084,14 +7084,14 @@ UPDATE t5 SET c2=13 where c1 BETWEEN 5 AND 9;
SELECT hex(c1),hex(c2) FROM t5;
# EXPLAIN SELECT * FROM t5 WHERE c1 IN (b'001',b'101',b'111');
--disable_warnings
-UPDATE t5 SET c2=c2+10 WHERE c1 IN (b'001',b'101',b'111');
+UPDATE IGNORE t5 SET c2=c2+10 WHERE c1 IN (b'001',b'101',b'111');
--enable_warnings
--sorted_result
SELECT hex(c1),hex(c2) FROM t5;
# Update using eq_ref
# EXPLAIN SELECT * FROM t5,t6 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
-UPDATE t5,t6 SET t5.c2=t6.c1+t6.c2 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
+UPDATE IGNORE t5,t6 SET t5.c2=t6.c1+t6.c2 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
############# DELETE ###########
@@ -7099,7 +7099,7 @@ TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
# Delete by order by limit
DELETE FROM t6 WHERE c2 > 100 ORDER BY c2 LIMIT 1;
@@ -7127,7 +7127,7 @@ SELECT hex(c1),hex(c2) FROM t5;
TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
-INSERT INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
+INSERT IGNORE INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
# Update using Const
# EXPLAIN SELECT * FROM t5 WHERE c1=6 AND c2=6;
@@ -7176,18 +7176,18 @@ let $STR2= query_get_value(select @v3 as I,I,1);
eval INSERT INTO t1 VALUES (b'$STR2');
set @v3=repeat('10',@v2);
let $STR3= query_get_value(select @v3 as I,I,1);
-eval INSERT INTO t1 VALUES (b'$STR3');
+eval INSERT IGNORE INTO t1 VALUES (b'$STR3');
set @v3=repeat('1',@v1);
set @v4=repeat('01',@v2);
set @v5=repeat('10',@v2);
let $STR0= query_get_value(select @v3 as I,I,1);
let $STR2= query_get_value(select @v4 as I,I,1);
let $STR3= query_get_value(select @v5 as I,I,1);
-eval INSERT INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
+eval INSERT IGNORE INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
dec $i;
}
-INSERT INTO t1 VALUES (b'1010');
-INSERT INTO t2 VALUES (b'1010', b'1010', b'1010');
+INSERT IGNORE INTO t1 VALUES (b'1010');
+INSERT IGNORE INTO t2 VALUES (b'1010', b'1010', b'1010');
--sorted_result
SELECT HEX(c1) FROM t1;
--sorted_result
@@ -7222,7 +7222,7 @@ ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(1) NOT NULL PRIMARY KEY, c2 BIT(1));
CREATE TABLE t6(c1 BIT(1), c2 BIT(1));
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
--sorted_result
SELECT HEX(c1),HEX(c2) FROM t5;
@@ -7297,7 +7297,7 @@ SELECT hex(c1),hex(c2) FROM t5 WHERE c1 IS NOT NULL ORDER BY c1 DESC ;
SELECT hex(c1),hex(c2) FROM t5 WHERE c1 IS NOT NULL ORDER BY c1 DESC LIMIT 2 ;
#Inserting different charachers
CREATE TABLE t7(c1 BIT(1));
-INSERT INTO t7 VALUES('a'),('A'),('z'),('Z'),('!'),('`'),('@'),('#'),('~'),('$'),('%'),('^'),('&'),('*'),('('),(')'),('-'),('_'),('+'),('='),('1'),('9');
+INSERT IGNORE INTO t7 VALUES('a'),('A'),('z'),('Z'),('!'),('`'),('@'),('#'),('~'),('$'),('%'),('^'),('&'),('*'),('('),(')'),('-'),('_'),('+'),('='),('1'),('9');
--sorted_result
SELECT * FROM t7;
############# UPDATE ###########
@@ -7307,7 +7307,7 @@ UPDATE t6 SET c1='10' WHERE c2 > 100 ORDER BY c2 LIMIT 1;
# Update with arithmetic operations
-UPDATE t6 SET c1=c2+c1 WHERE c2 < 100;
+UPDATE IGNORE t6 SET c1=c2+c1 WHERE c2 < 100;
UPDATE t6 SET c2=c2+100 WHERE c1 >=100 ORDER BY c1 LIMIT 4;
@@ -7327,7 +7327,7 @@ UPDATE t6 SET c2=123 WHERE c1 IN (30,b'101',88);
# Update outside range would be clipped to closest endpoints
-UPDATE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
+UPDATE IGNORE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
UPDATE t6 SET c2=-1 WHERE c1=94;
@@ -7355,7 +7355,7 @@ SELECT hex(c1),hex(c2) FROM t5;
TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
-INSERT INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
+INSERT IGNORE INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
# Update using Const
# EXPLAIN SELECT * FROM t5 WHERE c1=6 AND c2=6;
@@ -7370,14 +7370,14 @@ UPDATE t5 SET c2=13 where c1 BETWEEN 5 AND 9;
SELECT hex(c1),hex(c2) FROM t5;
# EXPLAIN SELECT * FROM t5 WHERE c1 IN (b'001',b'101',b'111');
--disable_warnings
-UPDATE t5 SET c2=c2+10 WHERE c1 IN (b'001',b'101',b'111');
+UPDATE IGNORE t5 SET c2=c2+10 WHERE c1 IN (b'001',b'101',b'111');
--enable_warnings
--sorted_result
SELECT hex(c1),hex(c2) FROM t5;
# Update using eq_ref
# EXPLAIN SELECT * FROM t5,t6 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
-UPDATE t5,t6 SET t5.c2=t6.c1+t6.c2 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
+UPDATE IGNORE t5,t6 SET t5.c2=t6.c1+t6.c2 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
############# DELETE ###########
@@ -7385,7 +7385,7 @@ TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
# Delete by order by limit
DELETE FROM t6 WHERE c2 > 100 ORDER BY c2 LIMIT 1;
@@ -7413,7 +7413,7 @@ SELECT hex(c1),hex(c2) FROM t5;
TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
-INSERT INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
+INSERT IGNORE INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
# Update using Const
# EXPLAIN SELECT * FROM t5 WHERE c1=6 AND c2=6;
@@ -7469,11 +7469,11 @@ set @v5=repeat('10',@v2);
let $STR0= query_get_value(select @v3 as I,I,1);
let $STR2= query_get_value(select @v4 as I,I,1);
let $STR3= query_get_value(select @v5 as I,I,1);
-eval INSERT INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
+eval INSERT IGNORE INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
dec $i;
}
-INSERT INTO t1 VALUES (b'1010');
-INSERT INTO t2 VALUES (b'1010', b'1010', b'1010');
+INSERT IGNORE INTO t1 VALUES (b'1010');
+INSERT IGNORE INTO t2 VALUES (b'1010', b'1010', b'1010');
--sorted_result
SELECT HEX(c1) FROM t1;
--sorted_result
@@ -7508,7 +7508,7 @@ ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(2) NOT NULL PRIMARY KEY, c2 BIT(2));
CREATE TABLE t6(c1 BIT(2), c2 BIT(2));
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
--sorted_result
SELECT HEX(c1),HEX(c2) FROM t5;
@@ -7583,7 +7583,7 @@ SELECT hex(c1),hex(c2) FROM t5 WHERE c1 IS NOT NULL ORDER BY c1 DESC ;
SELECT hex(c1),hex(c2) FROM t5 WHERE c1 IS NOT NULL ORDER BY c1 DESC LIMIT 2 ;
#Inserting different charachers
CREATE TABLE t7(c1 BIT(2));
-INSERT INTO t7 VALUES('a'),('A'),('z'),('Z'),('!'),('`'),('@'),('#'),('~'),('$'),('%'),('^'),('&'),('*'),('('),(')'),('-'),('_'),('+'),('='),('1'),('9');
+INSERT IGNORE INTO t7 VALUES('a'),('A'),('z'),('Z'),('!'),('`'),('@'),('#'),('~'),('$'),('%'),('^'),('&'),('*'),('('),(')'),('-'),('_'),('+'),('='),('1'),('9');
--sorted_result
SELECT * FROM t7;
############# UPDATE ###########
@@ -7593,7 +7593,7 @@ UPDATE t6 SET c1='10' WHERE c2 > 100 ORDER BY c2 LIMIT 1;
# Update with arithmetic operations
-UPDATE t6 SET c1=c2+c1 WHERE c2 < 100;
+UPDATE IGNORE t6 SET c1=c2+c1 WHERE c2 < 100;
UPDATE t6 SET c2=c2+100 WHERE c1 >=100 ORDER BY c1 LIMIT 4;
@@ -7613,7 +7613,7 @@ UPDATE t6 SET c2=123 WHERE c1 IN (30,b'101',88);
# Update outside range would be clipped to closest endpoints
-UPDATE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
+UPDATE IGNORE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
UPDATE t6 SET c2=-1 WHERE c1=94;
@@ -7641,7 +7641,7 @@ SELECT hex(c1),hex(c2) FROM t5;
TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
-INSERT INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
+INSERT IGNORE INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
# Update using Const
# EXPLAIN SELECT * FROM t5 WHERE c1=6 AND c2=6;
@@ -7656,14 +7656,14 @@ UPDATE t5 SET c2=13 where c1 BETWEEN 5 AND 9;
SELECT hex(c1),hex(c2) FROM t5;
# EXPLAIN SELECT * FROM t5 WHERE c1 IN (b'001',b'101',b'111');
--disable_warnings
-UPDATE t5 SET c2=c2+10 WHERE c1 IN (b'001',b'101',b'111');
+UPDATE IGNORE t5 SET c2=c2+10 WHERE c1 IN (b'001',b'101',b'111');
--enable_warnings
--sorted_result
SELECT hex(c1),hex(c2) FROM t5;
# Update using eq_ref
# EXPLAIN SELECT * FROM t5,t6 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
-UPDATE t5,t6 SET t5.c2=t6.c1+t6.c2 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
+UPDATE IGNORE t5,t6 SET t5.c2=t6.c1+t6.c2 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
############# DELETE ###########
@@ -7671,7 +7671,7 @@ TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
# Delete by order by limit
DELETE FROM t6 WHERE c2 > 100 ORDER BY c2 LIMIT 1;
@@ -7699,7 +7699,7 @@ SELECT hex(c1),hex(c2) FROM t5;
TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
-INSERT INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
+INSERT IGNORE INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
# Update using Const
# EXPLAIN SELECT * FROM t5 WHERE c1=6 AND c2=6;
@@ -7755,7 +7755,7 @@ set @v5=repeat('10',@v2);
let $STR0= query_get_value(select @v3 as I,I,1);
let $STR2= query_get_value(select @v4 as I,I,1);
let $STR3= query_get_value(select @v5 as I,I,1);
-eval INSERT INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
+eval INSERT IGNORE INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
dec $i;
}
INSERT INTO t1 VALUES (b'1010');
@@ -7794,7 +7794,7 @@ ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(4) NOT NULL PRIMARY KEY, c2 BIT(4));
CREATE TABLE t6(c1 BIT(4), c2 BIT(4));
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
--sorted_result
SELECT HEX(c1),HEX(c2) FROM t5;
@@ -7869,7 +7869,7 @@ SELECT hex(c1),hex(c2) FROM t5 WHERE c1 IS NOT NULL ORDER BY c1 DESC ;
SELECT hex(c1),hex(c2) FROM t5 WHERE c1 IS NOT NULL ORDER BY c1 DESC LIMIT 2 ;
#Inserting different charachers
CREATE TABLE t7(c1 BIT(4));
-INSERT INTO t7 VALUES('a'),('A'),('z'),('Z'),('!'),('`'),('@'),('#'),('~'),('$'),('%'),('^'),('&'),('*'),('('),(')'),('-'),('_'),('+'),('='),('1'),('9');
+INSERT IGNORE INTO t7 VALUES('a'),('A'),('z'),('Z'),('!'),('`'),('@'),('#'),('~'),('$'),('%'),('^'),('&'),('*'),('('),(')'),('-'),('_'),('+'),('='),('1'),('9');
--sorted_result
SELECT * FROM t7;
############# UPDATE ###########
@@ -7879,7 +7879,7 @@ UPDATE t6 SET c1='10' WHERE c2 > 100 ORDER BY c2 LIMIT 1;
# Update with arithmetic operations
-UPDATE t6 SET c1=c2+c1 WHERE c2 < 100;
+UPDATE IGNORE t6 SET c1=c2+c1 WHERE c2 < 100;
UPDATE t6 SET c2=c2+100 WHERE c1 >=100 ORDER BY c1 LIMIT 4;
@@ -7931,7 +7931,7 @@ INSERT INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,
# Update using Const
# EXPLAIN SELECT * FROM t5 WHERE c1=6 AND c2=6;
-UPDATE t5 SET c2='a' WHERE c1=6 AND c2=6;
+UPDATE IGNORE t5 SET c2='a' WHERE c1=6 AND c2=6;
--sorted_result
SELECT hex(c1),hex(c2) FROM t5;
@@ -7942,14 +7942,14 @@ UPDATE t5 SET c2=13 where c1 BETWEEN 5 AND 9;
SELECT hex(c1),hex(c2) FROM t5;
# EXPLAIN SELECT * FROM t5 WHERE c1 IN (b'001',b'101',b'111');
--disable_warnings
-UPDATE t5 SET c2=c2+10 WHERE c1 IN (b'001',b'101',b'111');
+UPDATE IGNORE t5 SET c2=c2+10 WHERE c1 IN (b'001',b'101',b'111');
--enable_warnings
--sorted_result
SELECT hex(c1),hex(c2) FROM t5;
# Update using eq_ref
# EXPLAIN SELECT * FROM t5,t6 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
-UPDATE t5,t6 SET t5.c2=t6.c1+t6.c2 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
+UPDATE IGNORE t5,t6 SET t5.c2=t6.c1+t6.c2 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
############# DELETE ###########
@@ -7957,7 +7957,7 @@ TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
# Delete by order by limit
DELETE FROM t6 WHERE c2 > 100 ORDER BY c2 LIMIT 1;
@@ -8041,7 +8041,7 @@ set @v5=repeat('10',@v2);
let $STR0= query_get_value(select @v3 as I,I,1);
let $STR2= query_get_value(select @v4 as I,I,1);
let $STR3= query_get_value(select @v5 as I,I,1);
-eval INSERT INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
+eval INSERT IGNORE INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
dec $i;
}
INSERT INTO t1 VALUES (b'1010');
@@ -8080,7 +8080,7 @@ ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(8) NOT NULL PRIMARY KEY, c2 BIT(8));
CREATE TABLE t6(c1 BIT(8), c2 BIT(8));
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
--sorted_result
SELECT HEX(c1),HEX(c2) FROM t5;
@@ -8161,13 +8161,13 @@ SELECT * FROM t7;
############# UPDATE ###########
# Update order by limit
-UPDATE t6 SET c1='10' WHERE c2 > 100 ORDER BY c2 LIMIT 1;
+UPDATE IGNORE t6 SET c1='10' WHERE c2 > 100 ORDER BY c2 LIMIT 1;
# Update with arithmetic operations
UPDATE t6 SET c1=c2+c1 WHERE c2 < 100;
-UPDATE t6 SET c2=c2+100 WHERE c1 >=100 ORDER BY c1 LIMIT 4;
+UPDATE IGNORE t6 SET c2=c2+100 WHERE c1 >=100 ORDER BY c1 LIMIT 4;
# Update with NULL ( NULL to number & number to NULL)
@@ -8187,7 +8187,7 @@ UPDATE t6 SET c2=123 WHERE c1 IN (30,b'101',88);
# Update outside range would be clipped to closest endpoints
UPDATE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
-UPDATE t6 SET c2=-1 WHERE c1=94;
+UPDATE IGNORE t6 SET c2=-1 WHERE c1=94;
# Update ignore on bad null error
@@ -8203,7 +8203,7 @@ SET SQL_MODE=DEFAULT;
#Multi table update
--disable_warnings
-UPDATE t5,t6 SET t5.c2=t6.c1+t5.c1, t6.c2=t5.c1+t6.c1 WHERE t5.c1 > 100 OR t6.c2 > 100;
+UPDATE IGNORE t5,t6 SET t5.c2=t6.c1+t5.c1, t6.c2=t5.c1+t6.c1 WHERE t5.c1 > 100 OR t6.c2 > 100;
--enable_warnings
--sorted_result
SELECT hex(c1),hex(c2) FROM t5;
@@ -8243,7 +8243,7 @@ TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
# Delete by order by limit
DELETE FROM t6 WHERE c2 > 100 ORDER BY c2 LIMIT 1;
@@ -8327,7 +8327,7 @@ set @v5=repeat('10',@v2);
let $STR0= query_get_value(select @v3 as I,I,1);
let $STR2= query_get_value(select @v4 as I,I,1);
let $STR3= query_get_value(select @v5 as I,I,1);
-eval INSERT INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
+eval INSERT IGNORE INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
dec $i;
}
INSERT INTO t1 VALUES (b'1010');
@@ -8473,7 +8473,7 @@ UPDATE t6 SET c2=123 WHERE c1 IN (30,b'101',88);
# Update outside range would be clipped to closest endpoints
UPDATE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
-UPDATE t6 SET c2=-1 WHERE c1=94;
+UPDATE IGNORE t6 SET c2=-1 WHERE c1=94;
# Update ignore on bad null error
@@ -8613,7 +8613,7 @@ set @v5=repeat('10',@v2);
let $STR0= query_get_value(select @v3 as I,I,1);
let $STR2= query_get_value(select @v4 as I,I,1);
let $STR3= query_get_value(select @v5 as I,I,1);
-eval INSERT INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
+eval INSERT IGNORE INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
dec $i;
}
INSERT INTO t1 VALUES (b'1010');
@@ -8759,7 +8759,7 @@ UPDATE t6 SET c2=123 WHERE c1 IN (30,b'101',88);
# Update outside range would be clipped to closest endpoints
UPDATE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
-UPDATE t6 SET c2=-1 WHERE c1=94;
+UPDATE IGNORE t6 SET c2=-1 WHERE c1=94;
# Update ignore on bad null error
@@ -8899,7 +8899,7 @@ set @v5=repeat('10',@v2);
let $STR0= query_get_value(select @v3 as I,I,1);
let $STR2= query_get_value(select @v4 as I,I,1);
let $STR3= query_get_value(select @v5 as I,I,1);
-eval INSERT INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
+eval INSERT IGNORE INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
dec $i;
}
INSERT INTO t1 VALUES (b'1010');
@@ -9188,8 +9188,8 @@ let $STR3= query_get_value(select @v5 as I,I,1);
eval INSERT INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
dec $i;
}
-INSERT INTO t1 VALUES (b'1010101010101010');
-INSERT INTO t2 VALUES (b'1010101010101010', b'1010101010101010', b'1010101010101010');
+INSERT IGNORE INTO t1 VALUES (b'1010101010101010');
+INSERT IGNORE INTO t2 VALUES (b'1010101010101010', b'1010101010101010', b'1010101010101010');
--sorted_result
SELECT HEX(c1) FROM t1;
--sorted_result
@@ -9224,7 +9224,7 @@ ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(0) NOT NULL PRIMARY KEY, c2 BIT(0));
CREATE TABLE t6(c1 BIT(0), c2 BIT(0));
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
--sorted_result
SELECT HEX(c1),HEX(c2) FROM t5;
@@ -9299,7 +9299,7 @@ SELECT hex(c1),hex(c2) FROM t5 WHERE c1 IS NOT NULL ORDER BY c1 DESC ;
SELECT hex(c1),hex(c2) FROM t5 WHERE c1 IS NOT NULL ORDER BY c1 DESC LIMIT 2 ;
#Inserting different charachers
CREATE TABLE t7(c1 BIT(0));
-INSERT INTO t7 VALUES('a'),('A'),('z'),('Z'),('!'),('`'),('@'),('#'),('~'),('$'),('%'),('^'),('&'),('*'),('('),(')'),('-'),('_'),('+'),('='),('1'),('9');
+INSERT IGNORE INTO t7 VALUES('a'),('A'),('z'),('Z'),('!'),('`'),('@'),('#'),('~'),('$'),('%'),('^'),('&'),('*'),('('),(')'),('-'),('_'),('+'),('='),('1'),('9');
--sorted_result
SELECT * FROM t7;
############# UPDATE ###########
@@ -9309,7 +9309,7 @@ UPDATE t6 SET c1='10' WHERE c2 > 100 ORDER BY c2 LIMIT 1;
# Update with arithmetic operations
-UPDATE t6 SET c1=c2+c1 WHERE c2 < 100;
+UPDATE IGNORE t6 SET c1=c2+c1 WHERE c2 < 100;
UPDATE t6 SET c2=c2+100 WHERE c1 >=100 ORDER BY c1 LIMIT 4;
@@ -9329,7 +9329,7 @@ UPDATE t6 SET c2=123 WHERE c1 IN (30,b'101',88);
# Update outside range would be clipped to closest endpoints
-UPDATE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
+UPDATE IGNORE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
UPDATE t6 SET c2=-1 WHERE c1=94;
@@ -9357,7 +9357,7 @@ SELECT hex(c1),hex(c2) FROM t5;
TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
-INSERT INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
+INSERT IGNORE INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
# Update using Const
# EXPLAIN SELECT * FROM t5 WHERE c1=6 AND c2=6;
@@ -9372,14 +9372,14 @@ UPDATE t5 SET c2=13 where c1 BETWEEN 5 AND 9;
SELECT hex(c1),hex(c2) FROM t5;
# EXPLAIN SELECT * FROM t5 WHERE c1 IN (b'001',b'101',b'111');
--disable_warnings
-UPDATE t5 SET c2=c2+10 WHERE c1 IN (b'001',b'101',b'111');
+UPDATE IGNORE t5 SET c2=c2+10 WHERE c1 IN (b'001',b'101',b'111');
--enable_warnings
--sorted_result
SELECT hex(c1),hex(c2) FROM t5;
# Update using eq_ref
# EXPLAIN SELECT * FROM t5,t6 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
-UPDATE t5,t6 SET t5.c2=t6.c1+t6.c2 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
+UPDATE IGNORE t5,t6 SET t5.c2=t6.c1+t6.c2 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
############# DELETE ###########
@@ -9387,7 +9387,7 @@ TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
# Delete by order by limit
DELETE FROM t6 WHERE c2 > 100 ORDER BY c2 LIMIT 1;
@@ -9415,7 +9415,7 @@ SELECT hex(c1),hex(c2) FROM t5;
TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
-INSERT INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
+INSERT IGNORE INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
# Update using Const
# EXPLAIN SELECT * FROM t5 WHERE c1=6 AND c2=6;
@@ -9464,18 +9464,18 @@ let $STR2= query_get_value(select @v3 as I,I,1);
eval INSERT INTO t1 VALUES (b'$STR2');
set @v3=repeat('10',@v2);
let $STR3= query_get_value(select @v3 as I,I,1);
-eval INSERT INTO t1 VALUES (b'$STR3');
+eval INSERT IGNORE INTO t1 VALUES (b'$STR3');
set @v3=repeat('1',@v1);
set @v4=repeat('01',@v2);
set @v5=repeat('10',@v2);
let $STR0= query_get_value(select @v3 as I,I,1);
let $STR2= query_get_value(select @v4 as I,I,1);
let $STR3= query_get_value(select @v5 as I,I,1);
-eval INSERT INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
+eval INSERT IGNORE INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
dec $i;
}
-INSERT INTO t1 VALUES (b'1010101010101010');
-INSERT INTO t2 VALUES (b'1010101010101010', b'1010101010101010', b'1010101010101010');
+INSERT IGNORE INTO t1 VALUES (b'1010101010101010');
+INSERT IGNORE INTO t2 VALUES (b'1010101010101010', b'1010101010101010', b'1010101010101010');
--sorted_result
SELECT HEX(c1) FROM t1;
--sorted_result
@@ -9510,7 +9510,7 @@ ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(1) NOT NULL PRIMARY KEY, c2 BIT(1));
CREATE TABLE t6(c1 BIT(1), c2 BIT(1));
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
--sorted_result
SELECT HEX(c1),HEX(c2) FROM t5;
@@ -9585,7 +9585,7 @@ SELECT hex(c1),hex(c2) FROM t5 WHERE c1 IS NOT NULL ORDER BY c1 DESC ;
SELECT hex(c1),hex(c2) FROM t5 WHERE c1 IS NOT NULL ORDER BY c1 DESC LIMIT 2 ;
#Inserting different charachers
CREATE TABLE t7(c1 BIT(1));
-INSERT INTO t7 VALUES('a'),('A'),('z'),('Z'),('!'),('`'),('@'),('#'),('~'),('$'),('%'),('^'),('&'),('*'),('('),(')'),('-'),('_'),('+'),('='),('1'),('9');
+INSERT IGNORE INTO t7 VALUES('a'),('A'),('z'),('Z'),('!'),('`'),('@'),('#'),('~'),('$'),('%'),('^'),('&'),('*'),('('),(')'),('-'),('_'),('+'),('='),('1'),('9');
--sorted_result
SELECT * FROM t7;
############# UPDATE ###########
@@ -9595,7 +9595,7 @@ UPDATE t6 SET c1='10' WHERE c2 > 100 ORDER BY c2 LIMIT 1;
# Update with arithmetic operations
-UPDATE t6 SET c1=c2+c1 WHERE c2 < 100;
+UPDATE IGNORE t6 SET c1=c2+c1 WHERE c2 < 100;
UPDATE t6 SET c2=c2+100 WHERE c1 >=100 ORDER BY c1 LIMIT 4;
@@ -9615,7 +9615,7 @@ UPDATE t6 SET c2=123 WHERE c1 IN (30,b'101',88);
# Update outside range would be clipped to closest endpoints
-UPDATE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
+UPDATE IGNORE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
UPDATE t6 SET c2=-1 WHERE c1=94;
@@ -9643,7 +9643,7 @@ SELECT hex(c1),hex(c2) FROM t5;
TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
-INSERT INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
+INSERT IGNORE INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
# Update using Const
# EXPLAIN SELECT * FROM t5 WHERE c1=6 AND c2=6;
@@ -9658,14 +9658,14 @@ UPDATE t5 SET c2=13 where c1 BETWEEN 5 AND 9;
SELECT hex(c1),hex(c2) FROM t5;
# EXPLAIN SELECT * FROM t5 WHERE c1 IN (b'001',b'101',b'111');
--disable_warnings
-UPDATE t5 SET c2=c2+10 WHERE c1 IN (b'001',b'101',b'111');
+UPDATE IGNORE t5 SET c2=c2+10 WHERE c1 IN (b'001',b'101',b'111');
--enable_warnings
--sorted_result
SELECT hex(c1),hex(c2) FROM t5;
# Update using eq_ref
# EXPLAIN SELECT * FROM t5,t6 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
-UPDATE t5,t6 SET t5.c2=t6.c1+t6.c2 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
+UPDATE IGNORE t5,t6 SET t5.c2=t6.c1+t6.c2 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
############# DELETE ###########
@@ -9673,7 +9673,7 @@ TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
# Delete by order by limit
DELETE FROM t6 WHERE c2 > 100 ORDER BY c2 LIMIT 1;
@@ -9701,7 +9701,7 @@ SELECT hex(c1),hex(c2) FROM t5;
TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
-INSERT INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
+INSERT IGNORE INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
# Update using Const
# EXPLAIN SELECT * FROM t5 WHERE c1=6 AND c2=6;
@@ -9757,11 +9757,11 @@ set @v5=repeat('10',@v2);
let $STR0= query_get_value(select @v3 as I,I,1);
let $STR2= query_get_value(select @v4 as I,I,1);
let $STR3= query_get_value(select @v5 as I,I,1);
-eval INSERT INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
+eval INSERT IGNORE INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
dec $i;
}
-INSERT INTO t1 VALUES (b'1010101010101010');
-INSERT INTO t2 VALUES (b'1010101010101010', b'1010101010101010', b'1010101010101010');
+INSERT IGNORE INTO t1 VALUES (b'1010101010101010');
+INSERT IGNORE INTO t2 VALUES (b'1010101010101010', b'1010101010101010', b'1010101010101010');
--sorted_result
SELECT HEX(c1) FROM t1;
--sorted_result
@@ -9796,7 +9796,7 @@ ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(2) NOT NULL PRIMARY KEY, c2 BIT(2));
CREATE TABLE t6(c1 BIT(2), c2 BIT(2));
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
--sorted_result
SELECT HEX(c1),HEX(c2) FROM t5;
@@ -9871,7 +9871,7 @@ SELECT hex(c1),hex(c2) FROM t5 WHERE c1 IS NOT NULL ORDER BY c1 DESC ;
SELECT hex(c1),hex(c2) FROM t5 WHERE c1 IS NOT NULL ORDER BY c1 DESC LIMIT 2 ;
#Inserting different charachers
CREATE TABLE t7(c1 BIT(2));
-INSERT INTO t7 VALUES('a'),('A'),('z'),('Z'),('!'),('`'),('@'),('#'),('~'),('$'),('%'),('^'),('&'),('*'),('('),(')'),('-'),('_'),('+'),('='),('1'),('9');
+INSERT IGNORE INTO t7 VALUES('a'),('A'),('z'),('Z'),('!'),('`'),('@'),('#'),('~'),('$'),('%'),('^'),('&'),('*'),('('),(')'),('-'),('_'),('+'),('='),('1'),('9');
--sorted_result
SELECT * FROM t7;
############# UPDATE ###########
@@ -9881,7 +9881,7 @@ UPDATE t6 SET c1='10' WHERE c2 > 100 ORDER BY c2 LIMIT 1;
# Update with arithmetic operations
-UPDATE t6 SET c1=c2+c1 WHERE c2 < 100;
+UPDATE IGNORE t6 SET c1=c2+c1 WHERE c2 < 100;
UPDATE t6 SET c2=c2+100 WHERE c1 >=100 ORDER BY c1 LIMIT 4;
@@ -9901,7 +9901,7 @@ UPDATE t6 SET c2=123 WHERE c1 IN (30,b'101',88);
# Update outside range would be clipped to closest endpoints
-UPDATE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
+UPDATE IGNORE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
UPDATE t6 SET c2=-1 WHERE c1=94;
@@ -9929,7 +9929,7 @@ SELECT hex(c1),hex(c2) FROM t5;
TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
-INSERT INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
+INSERT IGNORE INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
# Update using Const
# EXPLAIN SELECT * FROM t5 WHERE c1=6 AND c2=6;
@@ -9944,14 +9944,14 @@ UPDATE t5 SET c2=13 where c1 BETWEEN 5 AND 9;
SELECT hex(c1),hex(c2) FROM t5;
# EXPLAIN SELECT * FROM t5 WHERE c1 IN (b'001',b'101',b'111');
--disable_warnings
-UPDATE t5 SET c2=c2+10 WHERE c1 IN (b'001',b'101',b'111');
+UPDATE IGNORE t5 SET c2=c2+10 WHERE c1 IN (b'001',b'101',b'111');
--enable_warnings
--sorted_result
SELECT hex(c1),hex(c2) FROM t5;
# Update using eq_ref
# EXPLAIN SELECT * FROM t5,t6 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
-UPDATE t5,t6 SET t5.c2=t6.c1+t6.c2 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
+UPDATE IGNORE t5,t6 SET t5.c2=t6.c1+t6.c2 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
############# DELETE ###########
@@ -9959,7 +9959,7 @@ TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
# Delete by order by limit
DELETE FROM t6 WHERE c2 > 100 ORDER BY c2 LIMIT 1;
@@ -9987,7 +9987,7 @@ SELECT hex(c1),hex(c2) FROM t5;
TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
-INSERT INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
+INSERT IGNORE INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
# Update using Const
# EXPLAIN SELECT * FROM t5 WHERE c1=6 AND c2=6;
@@ -10043,11 +10043,11 @@ set @v5=repeat('10',@v2);
let $STR0= query_get_value(select @v3 as I,I,1);
let $STR2= query_get_value(select @v4 as I,I,1);
let $STR3= query_get_value(select @v5 as I,I,1);
-eval INSERT INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
+eval INSERT IGNORE INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
dec $i;
}
-INSERT INTO t1 VALUES (b'1010101010101010');
-INSERT INTO t2 VALUES (b'1010101010101010', b'1010101010101010', b'1010101010101010');
+INSERT IGNORE INTO t1 VALUES (b'1010101010101010');
+INSERT IGNORE INTO t2 VALUES (b'1010101010101010', b'1010101010101010', b'1010101010101010');
--sorted_result
SELECT HEX(c1) FROM t1;
--sorted_result
@@ -10082,7 +10082,7 @@ ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(4) NOT NULL PRIMARY KEY, c2 BIT(4));
CREATE TABLE t6(c1 BIT(4), c2 BIT(4));
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
--sorted_result
SELECT HEX(c1),HEX(c2) FROM t5;
@@ -10157,7 +10157,7 @@ SELECT hex(c1),hex(c2) FROM t5 WHERE c1 IS NOT NULL ORDER BY c1 DESC ;
SELECT hex(c1),hex(c2) FROM t5 WHERE c1 IS NOT NULL ORDER BY c1 DESC LIMIT 2 ;
#Inserting different charachers
CREATE TABLE t7(c1 BIT(4));
-INSERT INTO t7 VALUES('a'),('A'),('z'),('Z'),('!'),('`'),('@'),('#'),('~'),('$'),('%'),('^'),('&'),('*'),('('),(')'),('-'),('_'),('+'),('='),('1'),('9');
+INSERT IGNORE INTO t7 VALUES('a'),('A'),('z'),('Z'),('!'),('`'),('@'),('#'),('~'),('$'),('%'),('^'),('&'),('*'),('('),(')'),('-'),('_'),('+'),('='),('1'),('9');
--sorted_result
SELECT * FROM t7;
############# UPDATE ###########
@@ -10167,7 +10167,7 @@ UPDATE t6 SET c1='10' WHERE c2 > 100 ORDER BY c2 LIMIT 1;
# Update with arithmetic operations
-UPDATE t6 SET c1=c2+c1 WHERE c2 < 100;
+UPDATE IGNORE t6 SET c1=c2+c1 WHERE c2 < 100;
UPDATE t6 SET c2=c2+100 WHERE c1 >=100 ORDER BY c1 LIMIT 4;
@@ -10219,7 +10219,7 @@ INSERT INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,
# Update using Const
# EXPLAIN SELECT * FROM t5 WHERE c1=6 AND c2=6;
-UPDATE t5 SET c2='a' WHERE c1=6 AND c2=6;
+UPDATE IGNORE t5 SET c2='a' WHERE c1=6 AND c2=6;
--sorted_result
SELECT hex(c1),hex(c2) FROM t5;
@@ -10230,14 +10230,14 @@ UPDATE t5 SET c2=13 where c1 BETWEEN 5 AND 9;
SELECT hex(c1),hex(c2) FROM t5;
# EXPLAIN SELECT * FROM t5 WHERE c1 IN (b'001',b'101',b'111');
--disable_warnings
-UPDATE t5 SET c2=c2+10 WHERE c1 IN (b'001',b'101',b'111');
+UPDATE IGNORE t5 SET c2=c2+10 WHERE c1 IN (b'001',b'101',b'111');
--enable_warnings
--sorted_result
SELECT hex(c1),hex(c2) FROM t5;
# Update using eq_ref
# EXPLAIN SELECT * FROM t5,t6 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
-UPDATE t5,t6 SET t5.c2=t6.c1+t6.c2 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
+UPDATE IGNORE t5,t6 SET t5.c2=t6.c1+t6.c2 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
############# DELETE ###########
@@ -10245,7 +10245,7 @@ TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
# Delete by order by limit
DELETE FROM t6 WHERE c2 > 100 ORDER BY c2 LIMIT 1;
@@ -10329,11 +10329,11 @@ set @v5=repeat('10',@v2);
let $STR0= query_get_value(select @v3 as I,I,1);
let $STR2= query_get_value(select @v4 as I,I,1);
let $STR3= query_get_value(select @v5 as I,I,1);
-eval INSERT INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
+eval INSERT IGNORE INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
dec $i;
}
-INSERT INTO t1 VALUES (b'1010101010101010');
-INSERT INTO t2 VALUES (b'1010101010101010', b'1010101010101010', b'1010101010101010');
+INSERT IGNORE INTO t1 VALUES (b'1010101010101010');
+INSERT IGNORE INTO t2 VALUES (b'1010101010101010', b'1010101010101010', b'1010101010101010');
--sorted_result
SELECT HEX(c1) FROM t1;
--sorted_result
@@ -10368,7 +10368,7 @@ ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(8) NOT NULL PRIMARY KEY, c2 BIT(8));
CREATE TABLE t6(c1 BIT(8), c2 BIT(8));
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
--sorted_result
SELECT HEX(c1),HEX(c2) FROM t5;
@@ -10449,13 +10449,13 @@ SELECT * FROM t7;
############# UPDATE ###########
# Update order by limit
-UPDATE t6 SET c1='10' WHERE c2 > 100 ORDER BY c2 LIMIT 1;
+UPDATE IGNORE t6 SET c1='10' WHERE c2 > 100 ORDER BY c2 LIMIT 1;
# Update with arithmetic operations
UPDATE t6 SET c1=c2+c1 WHERE c2 < 100;
-UPDATE t6 SET c2=c2+100 WHERE c1 >=100 ORDER BY c1 LIMIT 4;
+UPDATE IGNORE t6 SET c2=c2+100 WHERE c1 >=100 ORDER BY c1 LIMIT 4;
# Update with NULL ( NULL to number & number to NULL)
@@ -10475,7 +10475,7 @@ UPDATE t6 SET c2=123 WHERE c1 IN (30,b'101',88);
# Update outside range would be clipped to closest endpoints
UPDATE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
-UPDATE t6 SET c2=-1 WHERE c1=94;
+UPDATE IGNORE t6 SET c2=-1 WHERE c1=94;
# Update ignore on bad null error
@@ -10491,7 +10491,7 @@ SET SQL_MODE=DEFAULT;
#Multi table update
--disable_warnings
-UPDATE t5,t6 SET t5.c2=t6.c1+t5.c1, t6.c2=t5.c1+t6.c1 WHERE t5.c1 > 100 OR t6.c2 > 100;
+UPDATE IGNORE t5,t6 SET t5.c2=t6.c1+t5.c1, t6.c2=t5.c1+t6.c1 WHERE t5.c1 > 100 OR t6.c2 > 100;
--enable_warnings
--sorted_result
SELECT hex(c1),hex(c2) FROM t5;
@@ -10531,7 +10531,7 @@ TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
# Delete by order by limit
DELETE FROM t6 WHERE c2 > 100 ORDER BY c2 LIMIT 1;
@@ -10615,7 +10615,7 @@ set @v5=repeat('10',@v2);
let $STR0= query_get_value(select @v3 as I,I,1);
let $STR2= query_get_value(select @v4 as I,I,1);
let $STR3= query_get_value(select @v5 as I,I,1);
-eval INSERT INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
+eval INSERT IGNORE INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
dec $i;
}
INSERT INTO t1 VALUES (b'1010101010101010');
@@ -10761,7 +10761,7 @@ UPDATE t6 SET c2=123 WHERE c1 IN (30,b'101',88);
# Update outside range would be clipped to closest endpoints
UPDATE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
-UPDATE t6 SET c2=-1 WHERE c1=94;
+UPDATE IGNORE t6 SET c2=-1 WHERE c1=94;
# Update ignore on bad null error
@@ -10901,7 +10901,7 @@ set @v5=repeat('10',@v2);
let $STR0= query_get_value(select @v3 as I,I,1);
let $STR2= query_get_value(select @v4 as I,I,1);
let $STR3= query_get_value(select @v5 as I,I,1);
-eval INSERT INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
+eval INSERT IGNORE INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
dec $i;
}
INSERT INTO t1 VALUES (b'1010101010101010');
@@ -11047,7 +11047,7 @@ UPDATE t6 SET c2=123 WHERE c1 IN (30,b'101',88);
# Update outside range would be clipped to closest endpoints
UPDATE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
-UPDATE t6 SET c2=-1 WHERE c1=94;
+UPDATE IGNORE t6 SET c2=-1 WHERE c1=94;
# Update ignore on bad null error
@@ -11187,7 +11187,7 @@ set @v5=repeat('10',@v2);
let $STR0= query_get_value(select @v3 as I,I,1);
let $STR2= query_get_value(select @v4 as I,I,1);
let $STR3= query_get_value(select @v5 as I,I,1);
-eval INSERT INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
+eval INSERT IGNORE INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
dec $i;
}
INSERT INTO t1 VALUES (b'1010101010101010');
@@ -11476,8 +11476,8 @@ let $STR3= query_get_value(select @v5 as I,I,1);
eval INSERT INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
dec $i;
}
-INSERT INTO t1 VALUES (b'101010101010101010101010101010');
-INSERT INTO t2 VALUES (b'101010101010101010101010101010', b'101010101010101010101010101010', b'101010101010101010101010101010');
+INSERT IGNORE INTO t1 VALUES (b'101010101010101010101010101010');
+INSERT IGNORE INTO t2 VALUES (b'101010101010101010101010101010', b'101010101010101010101010101010', b'101010101010101010101010101010');
--sorted_result
SELECT HEX(c1) FROM t1;
--sorted_result
@@ -11512,7 +11512,7 @@ ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(0) NOT NULL PRIMARY KEY, c2 BIT(0));
CREATE TABLE t6(c1 BIT(0), c2 BIT(0));
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
--sorted_result
SELECT HEX(c1),HEX(c2) FROM t5;
@@ -11587,7 +11587,7 @@ SELECT hex(c1),hex(c2) FROM t5 WHERE c1 IS NOT NULL ORDER BY c1 DESC ;
SELECT hex(c1),hex(c2) FROM t5 WHERE c1 IS NOT NULL ORDER BY c1 DESC LIMIT 2 ;
#Inserting different charachers
CREATE TABLE t7(c1 BIT(0));
-INSERT INTO t7 VALUES('a'),('A'),('z'),('Z'),('!'),('`'),('@'),('#'),('~'),('$'),('%'),('^'),('&'),('*'),('('),(')'),('-'),('_'),('+'),('='),('1'),('9');
+INSERT IGNORE INTO t7 VALUES('a'),('A'),('z'),('Z'),('!'),('`'),('@'),('#'),('~'),('$'),('%'),('^'),('&'),('*'),('('),(')'),('-'),('_'),('+'),('='),('1'),('9');
--sorted_result
SELECT * FROM t7;
############# UPDATE ###########
@@ -11597,7 +11597,7 @@ UPDATE t6 SET c1='10' WHERE c2 > 100 ORDER BY c2 LIMIT 1;
# Update with arithmetic operations
-UPDATE t6 SET c1=c2+c1 WHERE c2 < 100;
+UPDATE IGNORE t6 SET c1=c2+c1 WHERE c2 < 100;
UPDATE t6 SET c2=c2+100 WHERE c1 >=100 ORDER BY c1 LIMIT 4;
@@ -11617,7 +11617,7 @@ UPDATE t6 SET c2=123 WHERE c1 IN (30,b'101',88);
# Update outside range would be clipped to closest endpoints
-UPDATE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
+UPDATE IGNORE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
UPDATE t6 SET c2=-1 WHERE c1=94;
@@ -11645,7 +11645,7 @@ SELECT hex(c1),hex(c2) FROM t5;
TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
-INSERT INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
+INSERT IGNORE INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
# Update using Const
# EXPLAIN SELECT * FROM t5 WHERE c1=6 AND c2=6;
@@ -11660,14 +11660,14 @@ UPDATE t5 SET c2=13 where c1 BETWEEN 5 AND 9;
SELECT hex(c1),hex(c2) FROM t5;
# EXPLAIN SELECT * FROM t5 WHERE c1 IN (b'001',b'101',b'111');
--disable_warnings
-UPDATE t5 SET c2=c2+10 WHERE c1 IN (b'001',b'101',b'111');
+UPDATE IGNORE t5 SET c2=c2+10 WHERE c1 IN (b'001',b'101',b'111');
--enable_warnings
--sorted_result
SELECT hex(c1),hex(c2) FROM t5;
# Update using eq_ref
# EXPLAIN SELECT * FROM t5,t6 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
-UPDATE t5,t6 SET t5.c2=t6.c1+t6.c2 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
+UPDATE IGNORE t5,t6 SET t5.c2=t6.c1+t6.c2 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
############# DELETE ###########
@@ -11675,7 +11675,7 @@ TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
# Delete by order by limit
DELETE FROM t6 WHERE c2 > 100 ORDER BY c2 LIMIT 1;
@@ -11703,7 +11703,7 @@ SELECT hex(c1),hex(c2) FROM t5;
TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
-INSERT INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
+INSERT IGNORE INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
# Update using Const
# EXPLAIN SELECT * FROM t5 WHERE c1=6 AND c2=6;
@@ -11752,18 +11752,18 @@ let $STR2= query_get_value(select @v3 as I,I,1);
eval INSERT INTO t1 VALUES (b'$STR2');
set @v3=repeat('10',@v2);
let $STR3= query_get_value(select @v3 as I,I,1);
-eval INSERT INTO t1 VALUES (b'$STR3');
+eval INSERT IGNORE INTO t1 VALUES (b'$STR3');
set @v3=repeat('1',@v1);
set @v4=repeat('01',@v2);
set @v5=repeat('10',@v2);
let $STR0= query_get_value(select @v3 as I,I,1);
let $STR2= query_get_value(select @v4 as I,I,1);
let $STR3= query_get_value(select @v5 as I,I,1);
-eval INSERT INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
+eval INSERT IGNORE INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
dec $i;
}
-INSERT INTO t1 VALUES (b'101010101010101010101010101010');
-INSERT INTO t2 VALUES (b'101010101010101010101010101010', b'101010101010101010101010101010', b'101010101010101010101010101010');
+INSERT IGNORE INTO t1 VALUES (b'101010101010101010101010101010');
+INSERT IGNORE INTO t2 VALUES (b'101010101010101010101010101010', b'101010101010101010101010101010', b'101010101010101010101010101010');
--sorted_result
SELECT HEX(c1) FROM t1;
--sorted_result
@@ -11798,7 +11798,7 @@ ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(1) NOT NULL PRIMARY KEY, c2 BIT(1));
CREATE TABLE t6(c1 BIT(1), c2 BIT(1));
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
--sorted_result
SELECT HEX(c1),HEX(c2) FROM t5;
@@ -11873,7 +11873,7 @@ SELECT hex(c1),hex(c2) FROM t5 WHERE c1 IS NOT NULL ORDER BY c1 DESC ;
SELECT hex(c1),hex(c2) FROM t5 WHERE c1 IS NOT NULL ORDER BY c1 DESC LIMIT 2 ;
#Inserting different charachers
CREATE TABLE t7(c1 BIT(1));
-INSERT INTO t7 VALUES('a'),('A'),('z'),('Z'),('!'),('`'),('@'),('#'),('~'),('$'),('%'),('^'),('&'),('*'),('('),(')'),('-'),('_'),('+'),('='),('1'),('9');
+INSERT IGNORE INTO t7 VALUES('a'),('A'),('z'),('Z'),('!'),('`'),('@'),('#'),('~'),('$'),('%'),('^'),('&'),('*'),('('),(')'),('-'),('_'),('+'),('='),('1'),('9');
--sorted_result
SELECT * FROM t7;
############# UPDATE ###########
@@ -11883,7 +11883,7 @@ UPDATE t6 SET c1='10' WHERE c2 > 100 ORDER BY c2 LIMIT 1;
# Update with arithmetic operations
-UPDATE t6 SET c1=c2+c1 WHERE c2 < 100;
+UPDATE IGNORE t6 SET c1=c2+c1 WHERE c2 < 100;
UPDATE t6 SET c2=c2+100 WHERE c1 >=100 ORDER BY c1 LIMIT 4;
@@ -11903,7 +11903,7 @@ UPDATE t6 SET c2=123 WHERE c1 IN (30,b'101',88);
# Update outside range would be clipped to closest endpoints
-UPDATE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
+UPDATE IGNORE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
UPDATE t6 SET c2=-1 WHERE c1=94;
@@ -11931,7 +11931,7 @@ SELECT hex(c1),hex(c2) FROM t5;
TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
-INSERT INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
+INSERT IGNORE INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
# Update using Const
# EXPLAIN SELECT * FROM t5 WHERE c1=6 AND c2=6;
@@ -11946,14 +11946,14 @@ UPDATE t5 SET c2=13 where c1 BETWEEN 5 AND 9;
SELECT hex(c1),hex(c2) FROM t5;
# EXPLAIN SELECT * FROM t5 WHERE c1 IN (b'001',b'101',b'111');
--disable_warnings
-UPDATE t5 SET c2=c2+10 WHERE c1 IN (b'001',b'101',b'111');
+UPDATE IGNORE t5 SET c2=c2+10 WHERE c1 IN (b'001',b'101',b'111');
--enable_warnings
--sorted_result
SELECT hex(c1),hex(c2) FROM t5;
# Update using eq_ref
# EXPLAIN SELECT * FROM t5,t6 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
-UPDATE t5,t6 SET t5.c2=t6.c1+t6.c2 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
+UPDATE IGNORE t5,t6 SET t5.c2=t6.c1+t6.c2 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
############# DELETE ###########
@@ -11961,7 +11961,7 @@ TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
# Delete by order by limit
DELETE FROM t6 WHERE c2 > 100 ORDER BY c2 LIMIT 1;
@@ -11989,7 +11989,7 @@ SELECT hex(c1),hex(c2) FROM t5;
TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
-INSERT INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
+INSERT IGNORE INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
# Update using Const
# EXPLAIN SELECT * FROM t5 WHERE c1=6 AND c2=6;
@@ -12045,11 +12045,11 @@ set @v5=repeat('10',@v2);
let $STR0= query_get_value(select @v3 as I,I,1);
let $STR2= query_get_value(select @v4 as I,I,1);
let $STR3= query_get_value(select @v5 as I,I,1);
-eval INSERT INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
+eval INSERT IGNORE INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
dec $i;
}
-INSERT INTO t1 VALUES (b'101010101010101010101010101010');
-INSERT INTO t2 VALUES (b'101010101010101010101010101010', b'101010101010101010101010101010', b'101010101010101010101010101010');
+INSERT IGNORE INTO t1 VALUES (b'101010101010101010101010101010');
+INSERT IGNORE INTO t2 VALUES (b'101010101010101010101010101010', b'101010101010101010101010101010', b'101010101010101010101010101010');
--sorted_result
SELECT HEX(c1) FROM t1;
--sorted_result
@@ -12084,7 +12084,7 @@ ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(2) NOT NULL PRIMARY KEY, c2 BIT(2));
CREATE TABLE t6(c1 BIT(2), c2 BIT(2));
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
--sorted_result
SELECT HEX(c1),HEX(c2) FROM t5;
@@ -12159,7 +12159,7 @@ SELECT hex(c1),hex(c2) FROM t5 WHERE c1 IS NOT NULL ORDER BY c1 DESC ;
SELECT hex(c1),hex(c2) FROM t5 WHERE c1 IS NOT NULL ORDER BY c1 DESC LIMIT 2 ;
#Inserting different charachers
CREATE TABLE t7(c1 BIT(2));
-INSERT INTO t7 VALUES('a'),('A'),('z'),('Z'),('!'),('`'),('@'),('#'),('~'),('$'),('%'),('^'),('&'),('*'),('('),(')'),('-'),('_'),('+'),('='),('1'),('9');
+INSERT IGNORE INTO t7 VALUES('a'),('A'),('z'),('Z'),('!'),('`'),('@'),('#'),('~'),('$'),('%'),('^'),('&'),('*'),('('),(')'),('-'),('_'),('+'),('='),('1'),('9');
--sorted_result
SELECT * FROM t7;
############# UPDATE ###########
@@ -12169,7 +12169,7 @@ UPDATE t6 SET c1='10' WHERE c2 > 100 ORDER BY c2 LIMIT 1;
# Update with arithmetic operations
-UPDATE t6 SET c1=c2+c1 WHERE c2 < 100;
+UPDATE IGNORE t6 SET c1=c2+c1 WHERE c2 < 100;
UPDATE t6 SET c2=c2+100 WHERE c1 >=100 ORDER BY c1 LIMIT 4;
@@ -12189,7 +12189,7 @@ UPDATE t6 SET c2=123 WHERE c1 IN (30,b'101',88);
# Update outside range would be clipped to closest endpoints
-UPDATE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
+UPDATE IGNORE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
UPDATE t6 SET c2=-1 WHERE c1=94;
@@ -12217,7 +12217,7 @@ SELECT hex(c1),hex(c2) FROM t5;
TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
-INSERT INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
+INSERT IGNORE INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
# Update using Const
# EXPLAIN SELECT * FROM t5 WHERE c1=6 AND c2=6;
@@ -12232,14 +12232,14 @@ UPDATE t5 SET c2=13 where c1 BETWEEN 5 AND 9;
SELECT hex(c1),hex(c2) FROM t5;
# EXPLAIN SELECT * FROM t5 WHERE c1 IN (b'001',b'101',b'111');
--disable_warnings
-UPDATE t5 SET c2=c2+10 WHERE c1 IN (b'001',b'101',b'111');
+UPDATE IGNORE t5 SET c2=c2+10 WHERE c1 IN (b'001',b'101',b'111');
--enable_warnings
--sorted_result
SELECT hex(c1),hex(c2) FROM t5;
# Update using eq_ref
# EXPLAIN SELECT * FROM t5,t6 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
-UPDATE t5,t6 SET t5.c2=t6.c1+t6.c2 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
+UPDATE IGNORE t5,t6 SET t5.c2=t6.c1+t6.c2 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
############# DELETE ###########
@@ -12247,7 +12247,7 @@ TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
# Delete by order by limit
DELETE FROM t6 WHERE c2 > 100 ORDER BY c2 LIMIT 1;
@@ -12275,7 +12275,7 @@ SELECT hex(c1),hex(c2) FROM t5;
TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
-INSERT INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
+INSERT IGNORE INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
# Update using Const
# EXPLAIN SELECT * FROM t5 WHERE c1=6 AND c2=6;
@@ -12331,11 +12331,11 @@ set @v5=repeat('10',@v2);
let $STR0= query_get_value(select @v3 as I,I,1);
let $STR2= query_get_value(select @v4 as I,I,1);
let $STR3= query_get_value(select @v5 as I,I,1);
-eval INSERT INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
+eval INSERT IGNORE INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
dec $i;
}
-INSERT INTO t1 VALUES (b'101010101010101010101010101010');
-INSERT INTO t2 VALUES (b'101010101010101010101010101010', b'101010101010101010101010101010', b'101010101010101010101010101010');
+INSERT IGNORE INTO t1 VALUES (b'101010101010101010101010101010');
+INSERT IGNORE INTO t2 VALUES (b'101010101010101010101010101010', b'101010101010101010101010101010', b'101010101010101010101010101010');
--sorted_result
SELECT HEX(c1) FROM t1;
--sorted_result
@@ -12370,7 +12370,7 @@ ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(4) NOT NULL PRIMARY KEY, c2 BIT(4));
CREATE TABLE t6(c1 BIT(4), c2 BIT(4));
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
--sorted_result
SELECT HEX(c1),HEX(c2) FROM t5;
@@ -12445,7 +12445,7 @@ SELECT hex(c1),hex(c2) FROM t5 WHERE c1 IS NOT NULL ORDER BY c1 DESC ;
SELECT hex(c1),hex(c2) FROM t5 WHERE c1 IS NOT NULL ORDER BY c1 DESC LIMIT 2 ;
#Inserting different charachers
CREATE TABLE t7(c1 BIT(4));
-INSERT INTO t7 VALUES('a'),('A'),('z'),('Z'),('!'),('`'),('@'),('#'),('~'),('$'),('%'),('^'),('&'),('*'),('('),(')'),('-'),('_'),('+'),('='),('1'),('9');
+INSERT IGNORE INTO t7 VALUES('a'),('A'),('z'),('Z'),('!'),('`'),('@'),('#'),('~'),('$'),('%'),('^'),('&'),('*'),('('),(')'),('-'),('_'),('+'),('='),('1'),('9');
--sorted_result
SELECT * FROM t7;
############# UPDATE ###########
@@ -12455,7 +12455,7 @@ UPDATE t6 SET c1='10' WHERE c2 > 100 ORDER BY c2 LIMIT 1;
# Update with arithmetic operations
-UPDATE t6 SET c1=c2+c1 WHERE c2 < 100;
+UPDATE IGNORE t6 SET c1=c2+c1 WHERE c2 < 100;
UPDATE t6 SET c2=c2+100 WHERE c1 >=100 ORDER BY c1 LIMIT 4;
@@ -12507,7 +12507,7 @@ INSERT INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,
# Update using Const
# EXPLAIN SELECT * FROM t5 WHERE c1=6 AND c2=6;
-UPDATE t5 SET c2='a' WHERE c1=6 AND c2=6;
+UPDATE IGNORE t5 SET c2='a' WHERE c1=6 AND c2=6;
--sorted_result
SELECT hex(c1),hex(c2) FROM t5;
@@ -12518,14 +12518,14 @@ UPDATE t5 SET c2=13 where c1 BETWEEN 5 AND 9;
SELECT hex(c1),hex(c2) FROM t5;
# EXPLAIN SELECT * FROM t5 WHERE c1 IN (b'001',b'101',b'111');
--disable_warnings
-UPDATE t5 SET c2=c2+10 WHERE c1 IN (b'001',b'101',b'111');
+UPDATE IGNORE t5 SET c2=c2+10 WHERE c1 IN (b'001',b'101',b'111');
--enable_warnings
--sorted_result
SELECT hex(c1),hex(c2) FROM t5;
# Update using eq_ref
# EXPLAIN SELECT * FROM t5,t6 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
-UPDATE t5,t6 SET t5.c2=t6.c1+t6.c2 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
+UPDATE IGNORE t5,t6 SET t5.c2=t6.c1+t6.c2 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
############# DELETE ###########
@@ -12533,7 +12533,7 @@ TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
# Delete by order by limit
DELETE FROM t6 WHERE c2 > 100 ORDER BY c2 LIMIT 1;
@@ -12617,11 +12617,11 @@ set @v5=repeat('10',@v2);
let $STR0= query_get_value(select @v3 as I,I,1);
let $STR2= query_get_value(select @v4 as I,I,1);
let $STR3= query_get_value(select @v5 as I,I,1);
-eval INSERT INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
+eval INSERT IGNORE INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
dec $i;
}
-INSERT INTO t1 VALUES (b'101010101010101010101010101010');
-INSERT INTO t2 VALUES (b'101010101010101010101010101010', b'101010101010101010101010101010', b'101010101010101010101010101010');
+INSERT IGNORE INTO t1 VALUES (b'101010101010101010101010101010');
+INSERT IGNORE INTO t2 VALUES (b'101010101010101010101010101010', b'101010101010101010101010101010', b'101010101010101010101010101010');
--sorted_result
SELECT HEX(c1) FROM t1;
--sorted_result
@@ -12656,7 +12656,7 @@ ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(8) NOT NULL PRIMARY KEY, c2 BIT(8));
CREATE TABLE t6(c1 BIT(8), c2 BIT(8));
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
--sorted_result
SELECT HEX(c1),HEX(c2) FROM t5;
@@ -12737,13 +12737,13 @@ SELECT * FROM t7;
############# UPDATE ###########
# Update order by limit
-UPDATE t6 SET c1='10' WHERE c2 > 100 ORDER BY c2 LIMIT 1;
+UPDATE IGNORE t6 SET c1='10' WHERE c2 > 100 ORDER BY c2 LIMIT 1;
# Update with arithmetic operations
UPDATE t6 SET c1=c2+c1 WHERE c2 < 100;
-UPDATE t6 SET c2=c2+100 WHERE c1 >=100 ORDER BY c1 LIMIT 4;
+UPDATE IGNORE t6 SET c2=c2+100 WHERE c1 >=100 ORDER BY c1 LIMIT 4;
# Update with NULL ( NULL to number & number to NULL)
@@ -12763,7 +12763,7 @@ UPDATE t6 SET c2=123 WHERE c1 IN (30,b'101',88);
# Update outside range would be clipped to closest endpoints
UPDATE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
-UPDATE t6 SET c2=-1 WHERE c1=94;
+UPDATE IGNORE t6 SET c2=-1 WHERE c1=94;
# Update ignore on bad null error
@@ -12779,7 +12779,7 @@ SET SQL_MODE=DEFAULT;
#Multi table update
--disable_warnings
-UPDATE t5,t6 SET t5.c2=t6.c1+t5.c1, t6.c2=t5.c1+t6.c1 WHERE t5.c1 > 100 OR t6.c2 > 100;
+UPDATE IGNORE t5,t6 SET t5.c2=t6.c1+t5.c1, t6.c2=t5.c1+t6.c1 WHERE t5.c1 > 100 OR t6.c2 > 100;
--enable_warnings
--sorted_result
SELECT hex(c1),hex(c2) FROM t5;
@@ -12819,7 +12819,7 @@ TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
# Delete by order by limit
DELETE FROM t6 WHERE c2 > 100 ORDER BY c2 LIMIT 1;
@@ -12903,11 +12903,11 @@ set @v5=repeat('10',@v2);
let $STR0= query_get_value(select @v3 as I,I,1);
let $STR2= query_get_value(select @v4 as I,I,1);
let $STR3= query_get_value(select @v5 as I,I,1);
-eval INSERT INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
+eval INSERT IGNORE INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
dec $i;
}
-INSERT INTO t1 VALUES (b'101010101010101010101010101010');
-INSERT INTO t2 VALUES (b'101010101010101010101010101010', b'101010101010101010101010101010', b'101010101010101010101010101010');
+INSERT IGNORE INTO t1 VALUES (b'101010101010101010101010101010');
+INSERT IGNORE INTO t2 VALUES (b'101010101010101010101010101010', b'101010101010101010101010101010', b'101010101010101010101010101010');
--sorted_result
SELECT HEX(c1) FROM t1;
--sorted_result
@@ -13049,7 +13049,7 @@ UPDATE t6 SET c2=123 WHERE c1 IN (30,b'101',88);
# Update outside range would be clipped to closest endpoints
UPDATE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
-UPDATE t6 SET c2=-1 WHERE c1=94;
+UPDATE IGNORE t6 SET c2=-1 WHERE c1=94;
# Update ignore on bad null error
@@ -13189,7 +13189,7 @@ set @v5=repeat('10',@v2);
let $STR0= query_get_value(select @v3 as I,I,1);
let $STR2= query_get_value(select @v4 as I,I,1);
let $STR3= query_get_value(select @v5 as I,I,1);
-eval INSERT INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
+eval INSERT IGNORE INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
dec $i;
}
INSERT INTO t1 VALUES (b'101010101010101010101010101010');
@@ -13335,7 +13335,7 @@ UPDATE t6 SET c2=123 WHERE c1 IN (30,b'101',88);
# Update outside range would be clipped to closest endpoints
UPDATE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
-UPDATE t6 SET c2=-1 WHERE c1=94;
+UPDATE IGNORE t6 SET c2=-1 WHERE c1=94;
# Update ignore on bad null error
@@ -13475,7 +13475,7 @@ set @v5=repeat('10',@v2);
let $STR0= query_get_value(select @v3 as I,I,1);
let $STR2= query_get_value(select @v4 as I,I,1);
let $STR3= query_get_value(select @v5 as I,I,1);
-eval INSERT INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
+eval INSERT IGNORE INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
dec $i;
}
INSERT INTO t1 VALUES (b'101010101010101010101010101010');
@@ -13765,8 +13765,8 @@ let $STR3= query_get_value(select @v5 as I,I,1);
eval INSERT INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
dec $i;
}
-INSERT INTO t1 VALUES (b'1010101010101010101010101010101010101010101010101010101010101010');
-INSERT INTO t2 VALUES (b'1010101010101010101010101010101010101010101010101010101010101010', b'1010101010101010101010101010101010101010101010101010101010101010', b'1010101010101010101010101010101010101010101010101010101010101010');
+INSERT IGNORE INTO t1 VALUES (b'1010101010101010101010101010101010101010101010101010101010101010');
+INSERT IGNORE INTO t2 VALUES (b'1010101010101010101010101010101010101010101010101010101010101010', b'1010101010101010101010101010101010101010101010101010101010101010', b'1010101010101010101010101010101010101010101010101010101010101010');
--sorted_result
SELECT HEX(c1) FROM t1;
--sorted_result
@@ -13801,7 +13801,7 @@ ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(0) NOT NULL PRIMARY KEY, c2 BIT(0));
CREATE TABLE t6(c1 BIT(0), c2 BIT(0));
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
--sorted_result
SELECT HEX(c1),HEX(c2) FROM t5;
@@ -13876,7 +13876,7 @@ SELECT hex(c1),hex(c2) FROM t5 WHERE c1 IS NOT NULL ORDER BY c1 DESC ;
SELECT hex(c1),hex(c2) FROM t5 WHERE c1 IS NOT NULL ORDER BY c1 DESC LIMIT 2 ;
#Inserting different charachers
CREATE TABLE t7(c1 BIT(0));
-INSERT INTO t7 VALUES('a'),('A'),('z'),('Z'),('!'),('`'),('@'),('#'),('~'),('$'),('%'),('^'),('&'),('*'),('('),(')'),('-'),('_'),('+'),('='),('1'),('9');
+INSERT IGNORE INTO t7 VALUES('a'),('A'),('z'),('Z'),('!'),('`'),('@'),('#'),('~'),('$'),('%'),('^'),('&'),('*'),('('),(')'),('-'),('_'),('+'),('='),('1'),('9');
--sorted_result
SELECT * FROM t7;
############# UPDATE ###########
@@ -13886,7 +13886,7 @@ UPDATE t6 SET c1='10' WHERE c2 > 100 ORDER BY c2 LIMIT 1;
# Update with arithmetic operations
-UPDATE t6 SET c1=c2+c1 WHERE c2 < 100;
+UPDATE IGNORE t6 SET c1=c2+c1 WHERE c2 < 100;
UPDATE t6 SET c2=c2+100 WHERE c1 >=100 ORDER BY c1 LIMIT 4;
@@ -13906,7 +13906,7 @@ UPDATE t6 SET c2=123 WHERE c1 IN (30,b'101',88);
# Update outside range would be clipped to closest endpoints
-UPDATE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
+UPDATE IGNORE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
UPDATE t6 SET c2=-1 WHERE c1=94;
@@ -13934,7 +13934,7 @@ SELECT hex(c1),hex(c2) FROM t5;
TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
-INSERT INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
+INSERT IGNORE INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
# Update using Const
# EXPLAIN SELECT * FROM t5 WHERE c1=6 AND c2=6;
@@ -13949,14 +13949,14 @@ UPDATE t5 SET c2=13 where c1 BETWEEN 5 AND 9;
SELECT hex(c1),hex(c2) FROM t5;
# EXPLAIN SELECT * FROM t5 WHERE c1 IN (b'001',b'101',b'111');
--disable_warnings
-UPDATE t5 SET c2=c2+10 WHERE c1 IN (b'001',b'101',b'111');
+UPDATE IGNORE t5 SET c2=c2+10 WHERE c1 IN (b'001',b'101',b'111');
--enable_warnings
--sorted_result
SELECT hex(c1),hex(c2) FROM t5;
# Update using eq_ref
# EXPLAIN SELECT * FROM t5,t6 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
-UPDATE t5,t6 SET t5.c2=t6.c1+t6.c2 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
+UPDATE IGNORE t5,t6 SET t5.c2=t6.c1+t6.c2 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
############# DELETE ###########
@@ -13964,7 +13964,7 @@ TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
# Delete by order by limit
DELETE FROM t6 WHERE c2 > 100 ORDER BY c2 LIMIT 1;
@@ -13992,7 +13992,7 @@ SELECT hex(c1),hex(c2) FROM t5;
TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
-INSERT INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
+INSERT IGNORE INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
# Update using Const
# EXPLAIN SELECT * FROM t5 WHERE c1=6 AND c2=6;
@@ -14042,18 +14042,18 @@ let $STR2= query_get_value(select @v3 as I,I,1);
eval INSERT INTO t1 VALUES (b'$STR2');
set @v3=repeat('10',@v2);
let $STR3= query_get_value(select @v3 as I,I,1);
-eval INSERT INTO t1 VALUES (b'$STR3');
+eval INSERT IGNORE INTO t1 VALUES (b'$STR3');
set @v3=repeat('1',@v1);
set @v4=repeat('01',@v2);
set @v5=repeat('10',@v2);
let $STR0= query_get_value(select @v3 as I,I,1);
let $STR2= query_get_value(select @v4 as I,I,1);
let $STR3= query_get_value(select @v5 as I,I,1);
-eval INSERT INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
+eval INSERT IGNORE INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
dec $i;
}
-INSERT INTO t1 VALUES (b'1010101010101010101010101010101010101010101010101010101010101010');
-INSERT INTO t2 VALUES (b'1010101010101010101010101010101010101010101010101010101010101010', b'1010101010101010101010101010101010101010101010101010101010101010', b'1010101010101010101010101010101010101010101010101010101010101010');
+INSERT IGNORE INTO t1 VALUES (b'1010101010101010101010101010101010101010101010101010101010101010');
+INSERT IGNORE INTO t2 VALUES (b'1010101010101010101010101010101010101010101010101010101010101010', b'1010101010101010101010101010101010101010101010101010101010101010', b'1010101010101010101010101010101010101010101010101010101010101010');
--sorted_result
SELECT HEX(c1) FROM t1;
--sorted_result
@@ -14088,7 +14088,7 @@ ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(1) NOT NULL PRIMARY KEY, c2 BIT(1));
CREATE TABLE t6(c1 BIT(1), c2 BIT(1));
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
--sorted_result
SELECT HEX(c1),HEX(c2) FROM t5;
@@ -14163,7 +14163,7 @@ SELECT hex(c1),hex(c2) FROM t5 WHERE c1 IS NOT NULL ORDER BY c1 DESC ;
SELECT hex(c1),hex(c2) FROM t5 WHERE c1 IS NOT NULL ORDER BY c1 DESC LIMIT 2 ;
#Inserting different charachers
CREATE TABLE t7(c1 BIT(1));
-INSERT INTO t7 VALUES('a'),('A'),('z'),('Z'),('!'),('`'),('@'),('#'),('~'),('$'),('%'),('^'),('&'),('*'),('('),(')'),('-'),('_'),('+'),('='),('1'),('9');
+INSERT IGNORE INTO t7 VALUES('a'),('A'),('z'),('Z'),('!'),('`'),('@'),('#'),('~'),('$'),('%'),('^'),('&'),('*'),('('),(')'),('-'),('_'),('+'),('='),('1'),('9');
--sorted_result
SELECT * FROM t7;
############# UPDATE ###########
@@ -14173,7 +14173,7 @@ UPDATE t6 SET c1='10' WHERE c2 > 100 ORDER BY c2 LIMIT 1;
# Update with arithmetic operations
-UPDATE t6 SET c1=c2+c1 WHERE c2 < 100;
+UPDATE IGNORE t6 SET c1=c2+c1 WHERE c2 < 100;
UPDATE t6 SET c2=c2+100 WHERE c1 >=100 ORDER BY c1 LIMIT 4;
@@ -14193,7 +14193,7 @@ UPDATE t6 SET c2=123 WHERE c1 IN (30,b'101',88);
# Update outside range would be clipped to closest endpoints
-UPDATE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
+UPDATE IGNORE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
UPDATE t6 SET c2=-1 WHERE c1=94;
@@ -14221,7 +14221,7 @@ SELECT hex(c1),hex(c2) FROM t5;
TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
-INSERT INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
+INSERT IGNORE INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
# Update using Const
# EXPLAIN SELECT * FROM t5 WHERE c1=6 AND c2=6;
@@ -14236,14 +14236,14 @@ UPDATE t5 SET c2=13 where c1 BETWEEN 5 AND 9;
SELECT hex(c1),hex(c2) FROM t5;
# EXPLAIN SELECT * FROM t5 WHERE c1 IN (b'001',b'101',b'111');
--disable_warnings
-UPDATE t5 SET c2=c2+10 WHERE c1 IN (b'001',b'101',b'111');
+UPDATE IGNORE t5 SET c2=c2+10 WHERE c1 IN (b'001',b'101',b'111');
--enable_warnings
--sorted_result
SELECT hex(c1),hex(c2) FROM t5;
# Update using eq_ref
# EXPLAIN SELECT * FROM t5,t6 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
-UPDATE t5,t6 SET t5.c2=t6.c1+t6.c2 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
+UPDATE IGNORE t5,t6 SET t5.c2=t6.c1+t6.c2 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
############# DELETE ###########
@@ -14251,7 +14251,7 @@ TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
# Delete by order by limit
DELETE FROM t6 WHERE c2 > 100 ORDER BY c2 LIMIT 1;
@@ -14279,7 +14279,7 @@ SELECT hex(c1),hex(c2) FROM t5;
TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
-INSERT INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
+INSERT IGNORE INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
# Update using Const
# EXPLAIN SELECT * FROM t5 WHERE c1=6 AND c2=6;
@@ -14336,11 +14336,11 @@ set @v5=repeat('10',@v2);
let $STR0= query_get_value(select @v3 as I,I,1);
let $STR2= query_get_value(select @v4 as I,I,1);
let $STR3= query_get_value(select @v5 as I,I,1);
-eval INSERT INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
+eval INSERT IGNORE INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
dec $i;
}
-INSERT INTO t1 VALUES (b'1010101010101010101010101010101010101010101010101010101010101010');
-INSERT INTO t2 VALUES (b'1010101010101010101010101010101010101010101010101010101010101010', b'1010101010101010101010101010101010101010101010101010101010101010', b'1010101010101010101010101010101010101010101010101010101010101010');
+INSERT IGNORE INTO t1 VALUES (b'1010101010101010101010101010101010101010101010101010101010101010');
+INSERT IGNORE INTO t2 VALUES (b'1010101010101010101010101010101010101010101010101010101010101010', b'1010101010101010101010101010101010101010101010101010101010101010', b'1010101010101010101010101010101010101010101010101010101010101010');
--sorted_result
SELECT HEX(c1) FROM t1;
--sorted_result
@@ -14375,7 +14375,7 @@ ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(2) NOT NULL PRIMARY KEY, c2 BIT(2));
CREATE TABLE t6(c1 BIT(2), c2 BIT(2));
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
--sorted_result
SELECT HEX(c1),HEX(c2) FROM t5;
@@ -14450,7 +14450,7 @@ SELECT hex(c1),hex(c2) FROM t5 WHERE c1 IS NOT NULL ORDER BY c1 DESC ;
SELECT hex(c1),hex(c2) FROM t5 WHERE c1 IS NOT NULL ORDER BY c1 DESC LIMIT 2 ;
#Inserting different charachers
CREATE TABLE t7(c1 BIT(2));
-INSERT INTO t7 VALUES('a'),('A'),('z'),('Z'),('!'),('`'),('@'),('#'),('~'),('$'),('%'),('^'),('&'),('*'),('('),(')'),('-'),('_'),('+'),('='),('1'),('9');
+INSERT IGNORE INTO t7 VALUES('a'),('A'),('z'),('Z'),('!'),('`'),('@'),('#'),('~'),('$'),('%'),('^'),('&'),('*'),('('),(')'),('-'),('_'),('+'),('='),('1'),('9');
--sorted_result
SELECT * FROM t7;
############# UPDATE ###########
@@ -14460,7 +14460,7 @@ UPDATE t6 SET c1='10' WHERE c2 > 100 ORDER BY c2 LIMIT 1;
# Update with arithmetic operations
-UPDATE t6 SET c1=c2+c1 WHERE c2 < 100;
+UPDATE IGNORE t6 SET c1=c2+c1 WHERE c2 < 100;
UPDATE t6 SET c2=c2+100 WHERE c1 >=100 ORDER BY c1 LIMIT 4;
@@ -14480,7 +14480,7 @@ UPDATE t6 SET c2=123 WHERE c1 IN (30,b'101',88);
# Update outside range would be clipped to closest endpoints
-UPDATE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
+UPDATE IGNORE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
UPDATE t6 SET c2=-1 WHERE c1=94;
@@ -14508,7 +14508,7 @@ SELECT hex(c1),hex(c2) FROM t5;
TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
-INSERT INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
+INSERT IGNORE INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
# Update using Const
# EXPLAIN SELECT * FROM t5 WHERE c1=6 AND c2=6;
@@ -14523,14 +14523,14 @@ UPDATE t5 SET c2=13 where c1 BETWEEN 5 AND 9;
SELECT hex(c1),hex(c2) FROM t5;
# EXPLAIN SELECT * FROM t5 WHERE c1 IN (b'001',b'101',b'111');
--disable_warnings
-UPDATE t5 SET c2=c2+10 WHERE c1 IN (b'001',b'101',b'111');
+UPDATE IGNORE t5 SET c2=c2+10 WHERE c1 IN (b'001',b'101',b'111');
--enable_warnings
--sorted_result
SELECT hex(c1),hex(c2) FROM t5;
# Update using eq_ref
# EXPLAIN SELECT * FROM t5,t6 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
-UPDATE t5,t6 SET t5.c2=t6.c1+t6.c2 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
+UPDATE IGNORE t5,t6 SET t5.c2=t6.c1+t6.c2 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
############# DELETE ###########
@@ -14538,7 +14538,7 @@ TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
# Delete by order by limit
DELETE FROM t6 WHERE c2 > 100 ORDER BY c2 LIMIT 1;
@@ -14566,7 +14566,7 @@ SELECT hex(c1),hex(c2) FROM t5;
TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
-INSERT INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
+INSERT IGNORE INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
# Update using Const
# EXPLAIN SELECT * FROM t5 WHERE c1=6 AND c2=6;
@@ -14623,11 +14623,11 @@ set @v5=repeat('10',@v2);
let $STR0= query_get_value(select @v3 as I,I,1);
let $STR2= query_get_value(select @v4 as I,I,1);
let $STR3= query_get_value(select @v5 as I,I,1);
-eval INSERT INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
+eval INSERT IGNORE INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
dec $i;
}
-INSERT INTO t1 VALUES (b'1010101010101010101010101010101010101010101010101010101010101010');
-INSERT INTO t2 VALUES (b'1010101010101010101010101010101010101010101010101010101010101010', b'1010101010101010101010101010101010101010101010101010101010101010', b'1010101010101010101010101010101010101010101010101010101010101010');
+INSERT IGNORE INTO t1 VALUES (b'1010101010101010101010101010101010101010101010101010101010101010');
+INSERT IGNORE INTO t2 VALUES (b'1010101010101010101010101010101010101010101010101010101010101010', b'1010101010101010101010101010101010101010101010101010101010101010', b'1010101010101010101010101010101010101010101010101010101010101010');
--sorted_result
SELECT HEX(c1) FROM t1;
--sorted_result
@@ -14662,7 +14662,7 @@ ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(4) NOT NULL PRIMARY KEY, c2 BIT(4));
CREATE TABLE t6(c1 BIT(4), c2 BIT(4));
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
--sorted_result
SELECT HEX(c1),HEX(c2) FROM t5;
@@ -14737,7 +14737,7 @@ SELECT hex(c1),hex(c2) FROM t5 WHERE c1 IS NOT NULL ORDER BY c1 DESC ;
SELECT hex(c1),hex(c2) FROM t5 WHERE c1 IS NOT NULL ORDER BY c1 DESC LIMIT 2 ;
#Inserting different charachers
CREATE TABLE t7(c1 BIT(4));
-INSERT INTO t7 VALUES('a'),('A'),('z'),('Z'),('!'),('`'),('@'),('#'),('~'),('$'),('%'),('^'),('&'),('*'),('('),(')'),('-'),('_'),('+'),('='),('1'),('9');
+INSERT IGNORE INTO t7 VALUES('a'),('A'),('z'),('Z'),('!'),('`'),('@'),('#'),('~'),('$'),('%'),('^'),('&'),('*'),('('),(')'),('-'),('_'),('+'),('='),('1'),('9');
--sorted_result
SELECT * FROM t7;
############# UPDATE ###########
@@ -14747,7 +14747,7 @@ UPDATE t6 SET c1='10' WHERE c2 > 100 ORDER BY c2 LIMIT 1;
# Update with arithmetic operations
-UPDATE t6 SET c1=c2+c1 WHERE c2 < 100;
+UPDATE IGNORE t6 SET c1=c2+c1 WHERE c2 < 100;
UPDATE t6 SET c2=c2+100 WHERE c1 >=100 ORDER BY c1 LIMIT 4;
@@ -14799,7 +14799,7 @@ INSERT INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,
# Update using Const
# EXPLAIN SELECT * FROM t5 WHERE c1=6 AND c2=6;
-UPDATE t5 SET c2='a' WHERE c1=6 AND c2=6;
+UPDATE IGNORE t5 SET c2='a' WHERE c1=6 AND c2=6;
--sorted_result
SELECT hex(c1),hex(c2) FROM t5;
@@ -14810,14 +14810,14 @@ UPDATE t5 SET c2=13 where c1 BETWEEN 5 AND 9;
SELECT hex(c1),hex(c2) FROM t5;
# EXPLAIN SELECT * FROM t5 WHERE c1 IN (b'001',b'101',b'111');
--disable_warnings
-UPDATE t5 SET c2=c2+10 WHERE c1 IN (b'001',b'101',b'111');
+UPDATE IGNORE t5 SET c2=c2+10 WHERE c1 IN (b'001',b'101',b'111');
--enable_warnings
--sorted_result
SELECT hex(c1),hex(c2) FROM t5;
# Update using eq_ref
# EXPLAIN SELECT * FROM t5,t6 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
-UPDATE t5,t6 SET t5.c2=t6.c1+t6.c2 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
+UPDATE IGNORE t5,t6 SET t5.c2=t6.c1+t6.c2 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
############# DELETE ###########
@@ -14825,7 +14825,7 @@ TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
# Delete by order by limit
DELETE FROM t6 WHERE c2 > 100 ORDER BY c2 LIMIT 1;
@@ -14910,11 +14910,11 @@ set @v5=repeat('10',@v2);
let $STR0= query_get_value(select @v3 as I,I,1);
let $STR2= query_get_value(select @v4 as I,I,1);
let $STR3= query_get_value(select @v5 as I,I,1);
-eval INSERT INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
+eval INSERT IGNORE INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
dec $i;
}
-INSERT INTO t1 VALUES (b'1010101010101010101010101010101010101010101010101010101010101010');
-INSERT INTO t2 VALUES (b'1010101010101010101010101010101010101010101010101010101010101010', b'1010101010101010101010101010101010101010101010101010101010101010', b'1010101010101010101010101010101010101010101010101010101010101010');
+INSERT IGNORE INTO t1 VALUES (b'1010101010101010101010101010101010101010101010101010101010101010');
+INSERT IGNORE INTO t2 VALUES (b'1010101010101010101010101010101010101010101010101010101010101010', b'1010101010101010101010101010101010101010101010101010101010101010', b'1010101010101010101010101010101010101010101010101010101010101010');
--sorted_result
SELECT HEX(c1) FROM t1;
--sorted_result
@@ -14949,7 +14949,7 @@ ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(8) NOT NULL PRIMARY KEY, c2 BIT(8));
CREATE TABLE t6(c1 BIT(8), c2 BIT(8));
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
--sorted_result
SELECT HEX(c1),HEX(c2) FROM t5;
@@ -15030,13 +15030,13 @@ SELECT * FROM t7;
############# UPDATE ###########
# Update order by limit
-UPDATE t6 SET c1='10' WHERE c2 > 100 ORDER BY c2 LIMIT 1;
+UPDATE IGNORE t6 SET c1='10' WHERE c2 > 100 ORDER BY c2 LIMIT 1;
# Update with arithmetic operations
UPDATE t6 SET c1=c2+c1 WHERE c2 < 100;
-UPDATE t6 SET c2=c2+100 WHERE c1 >=100 ORDER BY c1 LIMIT 4;
+UPDATE IGNORE t6 SET c2=c2+100 WHERE c1 >=100 ORDER BY c1 LIMIT 4;
# Update with NULL ( NULL to number & number to NULL)
@@ -15056,7 +15056,7 @@ UPDATE t6 SET c2=123 WHERE c1 IN (30,b'101',88);
# Update outside range would be clipped to closest endpoints
UPDATE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
-UPDATE t6 SET c2=-1 WHERE c1=94;
+UPDATE IGNORE t6 SET c2=-1 WHERE c1=94;
# Update ignore on bad null error
@@ -15072,7 +15072,7 @@ SET SQL_MODE=DEFAULT;
#Multi table update
--disable_warnings
-UPDATE t5,t6 SET t5.c2=t6.c1+t5.c1, t6.c2=t5.c1+t6.c1 WHERE t5.c1 > 100 OR t6.c2 > 100;
+UPDATE IGNORE t5,t6 SET t5.c2=t6.c1+t5.c1, t6.c2=t5.c1+t6.c1 WHERE t5.c1 > 100 OR t6.c2 > 100;
--enable_warnings
--sorted_result
SELECT hex(c1),hex(c2) FROM t5;
@@ -15112,7 +15112,7 @@ TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
# Delete by order by limit
DELETE FROM t6 WHERE c2 > 100 ORDER BY c2 LIMIT 1;
@@ -15197,11 +15197,11 @@ set @v5=repeat('10',@v2);
let $STR0= query_get_value(select @v3 as I,I,1);
let $STR2= query_get_value(select @v4 as I,I,1);
let $STR3= query_get_value(select @v5 as I,I,1);
-eval INSERT INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
+eval INSERT IGNORE INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
dec $i;
}
-INSERT INTO t1 VALUES (b'1010101010101010101010101010101010101010101010101010101010101010');
-INSERT INTO t2 VALUES (b'1010101010101010101010101010101010101010101010101010101010101010', b'1010101010101010101010101010101010101010101010101010101010101010', b'1010101010101010101010101010101010101010101010101010101010101010');
+INSERT IGNORE INTO t1 VALUES (b'1010101010101010101010101010101010101010101010101010101010101010');
+INSERT IGNORE INTO t2 VALUES (b'1010101010101010101010101010101010101010101010101010101010101010', b'1010101010101010101010101010101010101010101010101010101010101010', b'1010101010101010101010101010101010101010101010101010101010101010');
--sorted_result
SELECT HEX(c1) FROM t1;
--sorted_result
@@ -15343,7 +15343,7 @@ UPDATE t6 SET c2=123 WHERE c1 IN (30,b'101',88);
# Update outside range would be clipped to closest endpoints
UPDATE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
-UPDATE t6 SET c2=-1 WHERE c1=94;
+UPDATE IGNORE t6 SET c2=-1 WHERE c1=94;
# Update ignore on bad null error
@@ -15484,11 +15484,11 @@ set @v5=repeat('10',@v2);
let $STR0= query_get_value(select @v3 as I,I,1);
let $STR2= query_get_value(select @v4 as I,I,1);
let $STR3= query_get_value(select @v5 as I,I,1);
-eval INSERT INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
+eval INSERT IGNORE INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
dec $i;
}
-INSERT INTO t1 VALUES (b'1010101010101010101010101010101010101010101010101010101010101010');
-INSERT INTO t2 VALUES (b'1010101010101010101010101010101010101010101010101010101010101010', b'1010101010101010101010101010101010101010101010101010101010101010', b'1010101010101010101010101010101010101010101010101010101010101010');
+INSERT IGNORE INTO t1 VALUES (b'1010101010101010101010101010101010101010101010101010101010101010');
+INSERT IGNORE INTO t2 VALUES (b'1010101010101010101010101010101010101010101010101010101010101010', b'1010101010101010101010101010101010101010101010101010101010101010', b'1010101010101010101010101010101010101010101010101010101010101010');
--sorted_result
SELECT HEX(c1) FROM t1;
--sorted_result
@@ -15630,7 +15630,7 @@ UPDATE t6 SET c2=123 WHERE c1 IN (30,b'101',88);
# Update outside range would be clipped to closest endpoints
UPDATE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
-UPDATE t6 SET c2=-1 WHERE c1=94;
+UPDATE IGNORE t6 SET c2=-1 WHERE c1=94;
# Update ignore on bad null error
@@ -15771,7 +15771,7 @@ set @v5=repeat('10',@v2);
let $STR0= query_get_value(select @v3 as I,I,1);
let $STR2= query_get_value(select @v4 as I,I,1);
let $STR3= query_get_value(select @v5 as I,I,1);
-eval INSERT INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
+eval INSERT IGNORE INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
dec $i;
}
INSERT INTO t1 VALUES (b'1010101010101010101010101010101010101010101010101010101010101010');
@@ -16061,8 +16061,8 @@ let $STR3= query_get_value(select @v5 as I,I,1);
eval INSERT INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
dec $i;
}
-INSERT INTO t1 VALUES (b'10101010101010101010101010101010101010101010101010101010101010101');
-INSERT INTO t2 VALUES (b'10101010101010101010101010101010101010101010101010101010101010101', b'10101010101010101010101010101010101010101010101010101010101010101', b'10101010101010101010101010101010101010101010101010101010101010101');
+INSERT IGNORE INTO t1 VALUES (b'10101010101010101010101010101010101010101010101010101010101010101');
+INSERT IGNORE INTO t2 VALUES (b'10101010101010101010101010101010101010101010101010101010101010101', b'10101010101010101010101010101010101010101010101010101010101010101', b'10101010101010101010101010101010101010101010101010101010101010101');
--sorted_result
SELECT HEX(c1) FROM t1;
--sorted_result
@@ -16097,7 +16097,7 @@ ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(0) NOT NULL PRIMARY KEY, c2 BIT(0));
CREATE TABLE t6(c1 BIT(0), c2 BIT(0));
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
--sorted_result
SELECT HEX(c1),HEX(c2) FROM t5;
@@ -16172,7 +16172,7 @@ SELECT hex(c1),hex(c2) FROM t5 WHERE c1 IS NOT NULL ORDER BY c1 DESC ;
SELECT hex(c1),hex(c2) FROM t5 WHERE c1 IS NOT NULL ORDER BY c1 DESC LIMIT 2 ;
#Inserting different charachers
CREATE TABLE t7(c1 BIT(0));
-INSERT INTO t7 VALUES('a'),('A'),('z'),('Z'),('!'),('`'),('@'),('#'),('~'),('$'),('%'),('^'),('&'),('*'),('('),(')'),('-'),('_'),('+'),('='),('1'),('9');
+INSERT IGNORE INTO t7 VALUES('a'),('A'),('z'),('Z'),('!'),('`'),('@'),('#'),('~'),('$'),('%'),('^'),('&'),('*'),('('),(')'),('-'),('_'),('+'),('='),('1'),('9');
--sorted_result
SELECT * FROM t7;
############# UPDATE ###########
@@ -16182,7 +16182,7 @@ UPDATE t6 SET c1='10' WHERE c2 > 100 ORDER BY c2 LIMIT 1;
# Update with arithmetic operations
-UPDATE t6 SET c1=c2+c1 WHERE c2 < 100;
+UPDATE IGNORE t6 SET c1=c2+c1 WHERE c2 < 100;
UPDATE t6 SET c2=c2+100 WHERE c1 >=100 ORDER BY c1 LIMIT 4;
@@ -16202,7 +16202,7 @@ UPDATE t6 SET c2=123 WHERE c1 IN (30,b'101',88);
# Update outside range would be clipped to closest endpoints
-UPDATE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
+UPDATE IGNORE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
UPDATE t6 SET c2=-1 WHERE c1=94;
@@ -16230,7 +16230,7 @@ SELECT hex(c1),hex(c2) FROM t5;
TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
-INSERT INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
+INSERT IGNORE INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
# Update using Const
# EXPLAIN SELECT * FROM t5 WHERE c1=6 AND c2=6;
@@ -16245,14 +16245,14 @@ UPDATE t5 SET c2=13 where c1 BETWEEN 5 AND 9;
SELECT hex(c1),hex(c2) FROM t5;
# EXPLAIN SELECT * FROM t5 WHERE c1 IN (b'001',b'101',b'111');
--disable_warnings
-UPDATE t5 SET c2=c2+10 WHERE c1 IN (b'001',b'101',b'111');
+UPDATE IGNORE t5 SET c2=c2+10 WHERE c1 IN (b'001',b'101',b'111');
--enable_warnings
--sorted_result
SELECT hex(c1),hex(c2) FROM t5;
# Update using eq_ref
# EXPLAIN SELECT * FROM t5,t6 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
-UPDATE t5,t6 SET t5.c2=t6.c1+t6.c2 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
+UPDATE IGNORE t5,t6 SET t5.c2=t6.c1+t6.c2 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
############# DELETE ###########
@@ -16260,7 +16260,7 @@ TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
# Delete by order by limit
DELETE FROM t6 WHERE c2 > 100 ORDER BY c2 LIMIT 1;
@@ -16288,7 +16288,7 @@ SELECT hex(c1),hex(c2) FROM t5;
TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
-INSERT INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
+INSERT IGNORE INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
# Update using Const
# EXPLAIN SELECT * FROM t5 WHERE c1=6 AND c2=6;
@@ -16338,18 +16338,18 @@ let $STR2= query_get_value(select @v3 as I,I,1);
eval INSERT INTO t1 VALUES (b'$STR2');
set @v3=repeat('10',@v2);
let $STR3= query_get_value(select @v3 as I,I,1);
-eval INSERT INTO t1 VALUES (b'$STR3');
+eval INSERT IGNORE INTO t1 VALUES (b'$STR3');
set @v3=repeat('1',@v1);
set @v4=repeat('01',@v2);
set @v5=repeat('10',@v2);
let $STR0= query_get_value(select @v3 as I,I,1);
let $STR2= query_get_value(select @v4 as I,I,1);
let $STR3= query_get_value(select @v5 as I,I,1);
-eval INSERT INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
+eval INSERT IGNORE INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
dec $i;
}
-INSERT INTO t1 VALUES (b'10101010101010101010101010101010101010101010101010101010101010101');
-INSERT INTO t2 VALUES (b'10101010101010101010101010101010101010101010101010101010101010101', b'10101010101010101010101010101010101010101010101010101010101010101', b'10101010101010101010101010101010101010101010101010101010101010101');
+INSERT IGNORE INTO t1 VALUES (b'10101010101010101010101010101010101010101010101010101010101010101');
+INSERT IGNORE INTO t2 VALUES (b'10101010101010101010101010101010101010101010101010101010101010101', b'10101010101010101010101010101010101010101010101010101010101010101', b'10101010101010101010101010101010101010101010101010101010101010101');
--sorted_result
SELECT HEX(c1) FROM t1;
--sorted_result
@@ -16384,7 +16384,7 @@ ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(1) NOT NULL PRIMARY KEY, c2 BIT(1));
CREATE TABLE t6(c1 BIT(1), c2 BIT(1));
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
--sorted_result
SELECT HEX(c1),HEX(c2) FROM t5;
@@ -16459,7 +16459,7 @@ SELECT hex(c1),hex(c2) FROM t5 WHERE c1 IS NOT NULL ORDER BY c1 DESC ;
SELECT hex(c1),hex(c2) FROM t5 WHERE c1 IS NOT NULL ORDER BY c1 DESC LIMIT 2 ;
#Inserting different charachers
CREATE TABLE t7(c1 BIT(1));
-INSERT INTO t7 VALUES('a'),('A'),('z'),('Z'),('!'),('`'),('@'),('#'),('~'),('$'),('%'),('^'),('&'),('*'),('('),(')'),('-'),('_'),('+'),('='),('1'),('9');
+INSERT IGNORE INTO t7 VALUES('a'),('A'),('z'),('Z'),('!'),('`'),('@'),('#'),('~'),('$'),('%'),('^'),('&'),('*'),('('),(')'),('-'),('_'),('+'),('='),('1'),('9');
--sorted_result
SELECT * FROM t7;
############# UPDATE ###########
@@ -16469,7 +16469,7 @@ UPDATE t6 SET c1='10' WHERE c2 > 100 ORDER BY c2 LIMIT 1;
# Update with arithmetic operations
-UPDATE t6 SET c1=c2+c1 WHERE c2 < 100;
+UPDATE IGNORE t6 SET c1=c2+c1 WHERE c2 < 100;
UPDATE t6 SET c2=c2+100 WHERE c1 >=100 ORDER BY c1 LIMIT 4;
@@ -16489,7 +16489,7 @@ UPDATE t6 SET c2=123 WHERE c1 IN (30,b'101',88);
# Update outside range would be clipped to closest endpoints
-UPDATE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
+UPDATE IGNORE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
UPDATE t6 SET c2=-1 WHERE c1=94;
@@ -16517,7 +16517,7 @@ SELECT hex(c1),hex(c2) FROM t5;
TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
-INSERT INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
+INSERT IGNORE INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
# Update using Const
# EXPLAIN SELECT * FROM t5 WHERE c1=6 AND c2=6;
@@ -16532,14 +16532,14 @@ UPDATE t5 SET c2=13 where c1 BETWEEN 5 AND 9;
SELECT hex(c1),hex(c2) FROM t5;
# EXPLAIN SELECT * FROM t5 WHERE c1 IN (b'001',b'101',b'111');
--disable_warnings
-UPDATE t5 SET c2=c2+10 WHERE c1 IN (b'001',b'101',b'111');
+UPDATE IGNORE t5 SET c2=c2+10 WHERE c1 IN (b'001',b'101',b'111');
--enable_warnings
--sorted_result
SELECT hex(c1),hex(c2) FROM t5;
# Update using eq_ref
# EXPLAIN SELECT * FROM t5,t6 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
-UPDATE t5,t6 SET t5.c2=t6.c1+t6.c2 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
+UPDATE IGNORE t5,t6 SET t5.c2=t6.c1+t6.c2 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
############# DELETE ###########
@@ -16547,7 +16547,7 @@ TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
# Delete by order by limit
DELETE FROM t6 WHERE c2 > 100 ORDER BY c2 LIMIT 1;
@@ -16575,7 +16575,7 @@ SELECT hex(c1),hex(c2) FROM t5;
TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
-INSERT INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
+INSERT IGNORE INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
# Update using Const
# EXPLAIN SELECT * FROM t5 WHERE c1=6 AND c2=6;
@@ -16632,11 +16632,11 @@ set @v5=repeat('10',@v2);
let $STR0= query_get_value(select @v3 as I,I,1);
let $STR2= query_get_value(select @v4 as I,I,1);
let $STR3= query_get_value(select @v5 as I,I,1);
-eval INSERT INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
+eval INSERT IGNORE INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
dec $i;
}
-INSERT INTO t1 VALUES (b'10101010101010101010101010101010101010101010101010101010101010101');
-INSERT INTO t2 VALUES (b'10101010101010101010101010101010101010101010101010101010101010101', b'10101010101010101010101010101010101010101010101010101010101010101', b'10101010101010101010101010101010101010101010101010101010101010101');
+INSERT IGNORE INTO t1 VALUES (b'10101010101010101010101010101010101010101010101010101010101010101');
+INSERT IGNORE INTO t2 VALUES (b'10101010101010101010101010101010101010101010101010101010101010101', b'10101010101010101010101010101010101010101010101010101010101010101', b'10101010101010101010101010101010101010101010101010101010101010101');
--sorted_result
SELECT HEX(c1) FROM t1;
--sorted_result
@@ -16671,7 +16671,7 @@ ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(2) NOT NULL PRIMARY KEY, c2 BIT(2));
CREATE TABLE t6(c1 BIT(2), c2 BIT(2));
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
--sorted_result
SELECT HEX(c1),HEX(c2) FROM t5;
@@ -16746,7 +16746,7 @@ SELECT hex(c1),hex(c2) FROM t5 WHERE c1 IS NOT NULL ORDER BY c1 DESC ;
SELECT hex(c1),hex(c2) FROM t5 WHERE c1 IS NOT NULL ORDER BY c1 DESC LIMIT 2 ;
#Inserting different charachers
CREATE TABLE t7(c1 BIT(2));
-INSERT INTO t7 VALUES('a'),('A'),('z'),('Z'),('!'),('`'),('@'),('#'),('~'),('$'),('%'),('^'),('&'),('*'),('('),(')'),('-'),('_'),('+'),('='),('1'),('9');
+INSERT IGNORE INTO t7 VALUES('a'),('A'),('z'),('Z'),('!'),('`'),('@'),('#'),('~'),('$'),('%'),('^'),('&'),('*'),('('),(')'),('-'),('_'),('+'),('='),('1'),('9');
--sorted_result
SELECT * FROM t7;
############# UPDATE ###########
@@ -16756,7 +16756,7 @@ UPDATE t6 SET c1='10' WHERE c2 > 100 ORDER BY c2 LIMIT 1;
# Update with arithmetic operations
-UPDATE t6 SET c1=c2+c1 WHERE c2 < 100;
+UPDATE IGNORE t6 SET c1=c2+c1 WHERE c2 < 100;
UPDATE t6 SET c2=c2+100 WHERE c1 >=100 ORDER BY c1 LIMIT 4;
@@ -16776,7 +16776,7 @@ UPDATE t6 SET c2=123 WHERE c1 IN (30,b'101',88);
# Update outside range would be clipped to closest endpoints
-UPDATE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
+UPDATE IGNORE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
UPDATE t6 SET c2=-1 WHERE c1=94;
@@ -16804,7 +16804,7 @@ SELECT hex(c1),hex(c2) FROM t5;
TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
-INSERT INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
+INSERT IGNORE INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
# Update using Const
# EXPLAIN SELECT * FROM t5 WHERE c1=6 AND c2=6;
@@ -16819,14 +16819,14 @@ UPDATE t5 SET c2=13 where c1 BETWEEN 5 AND 9;
SELECT hex(c1),hex(c2) FROM t5;
# EXPLAIN SELECT * FROM t5 WHERE c1 IN (b'001',b'101',b'111');
--disable_warnings
-UPDATE t5 SET c2=c2+10 WHERE c1 IN (b'001',b'101',b'111');
+UPDATE IGNORE t5 SET c2=c2+10 WHERE c1 IN (b'001',b'101',b'111');
--enable_warnings
--sorted_result
SELECT hex(c1),hex(c2) FROM t5;
# Update using eq_ref
# EXPLAIN SELECT * FROM t5,t6 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
-UPDATE t5,t6 SET t5.c2=t6.c1+t6.c2 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
+UPDATE IGNORE t5,t6 SET t5.c2=t6.c1+t6.c2 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
############# DELETE ###########
@@ -16834,7 +16834,7 @@ TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
# Delete by order by limit
DELETE FROM t6 WHERE c2 > 100 ORDER BY c2 LIMIT 1;
@@ -16862,7 +16862,7 @@ SELECT hex(c1),hex(c2) FROM t5;
TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
-INSERT INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
+INSERT IGNORE INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
# Update using Const
# EXPLAIN SELECT * FROM t5 WHERE c1=6 AND c2=6;
@@ -16919,11 +16919,11 @@ set @v5=repeat('10',@v2);
let $STR0= query_get_value(select @v3 as I,I,1);
let $STR2= query_get_value(select @v4 as I,I,1);
let $STR3= query_get_value(select @v5 as I,I,1);
-eval INSERT INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
+eval INSERT IGNORE INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
dec $i;
}
-INSERT INTO t1 VALUES (b'10101010101010101010101010101010101010101010101010101010101010101');
-INSERT INTO t2 VALUES (b'10101010101010101010101010101010101010101010101010101010101010101', b'10101010101010101010101010101010101010101010101010101010101010101', b'10101010101010101010101010101010101010101010101010101010101010101');
+INSERT IGNORE INTO t1 VALUES (b'10101010101010101010101010101010101010101010101010101010101010101');
+INSERT IGNORE INTO t2 VALUES (b'10101010101010101010101010101010101010101010101010101010101010101', b'10101010101010101010101010101010101010101010101010101010101010101', b'10101010101010101010101010101010101010101010101010101010101010101');
--sorted_result
SELECT HEX(c1) FROM t1;
--sorted_result
@@ -16958,7 +16958,7 @@ ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(4) NOT NULL PRIMARY KEY, c2 BIT(4));
CREATE TABLE t6(c1 BIT(4), c2 BIT(4));
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
--sorted_result
SELECT HEX(c1),HEX(c2) FROM t5;
@@ -17033,7 +17033,7 @@ SELECT hex(c1),hex(c2) FROM t5 WHERE c1 IS NOT NULL ORDER BY c1 DESC ;
SELECT hex(c1),hex(c2) FROM t5 WHERE c1 IS NOT NULL ORDER BY c1 DESC LIMIT 2 ;
#Inserting different charachers
CREATE TABLE t7(c1 BIT(4));
-INSERT INTO t7 VALUES('a'),('A'),('z'),('Z'),('!'),('`'),('@'),('#'),('~'),('$'),('%'),('^'),('&'),('*'),('('),(')'),('-'),('_'),('+'),('='),('1'),('9');
+INSERT IGNORE INTO t7 VALUES('a'),('A'),('z'),('Z'),('!'),('`'),('@'),('#'),('~'),('$'),('%'),('^'),('&'),('*'),('('),(')'),('-'),('_'),('+'),('='),('1'),('9');
--sorted_result
SELECT * FROM t7;
############# UPDATE ###########
@@ -17043,7 +17043,7 @@ UPDATE t6 SET c1='10' WHERE c2 > 100 ORDER BY c2 LIMIT 1;
# Update with arithmetic operations
-UPDATE t6 SET c1=c2+c1 WHERE c2 < 100;
+UPDATE IGNORE t6 SET c1=c2+c1 WHERE c2 < 100;
UPDATE t6 SET c2=c2+100 WHERE c1 >=100 ORDER BY c1 LIMIT 4;
@@ -17095,7 +17095,7 @@ INSERT INTO t6 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,
# Update using Const
# EXPLAIN SELECT * FROM t5 WHERE c1=6 AND c2=6;
-UPDATE t5 SET c2='a' WHERE c1=6 AND c2=6;
+UPDATE IGNORE t5 SET c2='a' WHERE c1=6 AND c2=6;
--sorted_result
SELECT hex(c1),hex(c2) FROM t5;
@@ -17106,14 +17106,14 @@ UPDATE t5 SET c2=13 where c1 BETWEEN 5 AND 9;
SELECT hex(c1),hex(c2) FROM t5;
# EXPLAIN SELECT * FROM t5 WHERE c1 IN (b'001',b'101',b'111');
--disable_warnings
-UPDATE t5 SET c2=c2+10 WHERE c1 IN (b'001',b'101',b'111');
+UPDATE IGNORE t5 SET c2=c2+10 WHERE c1 IN (b'001',b'101',b'111');
--enable_warnings
--sorted_result
SELECT hex(c1),hex(c2) FROM t5;
# Update using eq_ref
# EXPLAIN SELECT * FROM t5,t6 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
-UPDATE t5,t6 SET t5.c2=t6.c1+t6.c2 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
+UPDATE IGNORE t5,t6 SET t5.c2=t6.c1+t6.c2 WHERE t5.c1=t6.c1 AND t5.c2=t6.c2;
############# DELETE ###########
@@ -17121,7 +17121,7 @@ TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
# Delete by order by limit
DELETE FROM t6 WHERE c2 > 100 ORDER BY c2 LIMIT 1;
@@ -17206,11 +17206,11 @@ set @v5=repeat('10',@v2);
let $STR0= query_get_value(select @v3 as I,I,1);
let $STR2= query_get_value(select @v4 as I,I,1);
let $STR3= query_get_value(select @v5 as I,I,1);
-eval INSERT INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
+eval INSERT IGNORE INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
dec $i;
}
-INSERT INTO t1 VALUES (b'10101010101010101010101010101010101010101010101010101010101010101');
-INSERT INTO t2 VALUES (b'10101010101010101010101010101010101010101010101010101010101010101', b'10101010101010101010101010101010101010101010101010101010101010101', b'10101010101010101010101010101010101010101010101010101010101010101');
+INSERT IGNORE INTO t1 VALUES (b'10101010101010101010101010101010101010101010101010101010101010101');
+INSERT IGNORE INTO t2 VALUES (b'10101010101010101010101010101010101010101010101010101010101010101', b'10101010101010101010101010101010101010101010101010101010101010101', b'10101010101010101010101010101010101010101010101010101010101010101');
--sorted_result
SELECT HEX(c1) FROM t1;
--sorted_result
@@ -17245,7 +17245,7 @@ ALTER TABLE t4 ADD PRIMARY KEY (i);
CREATE TABLE t5(c1 BIT(8) NOT NULL PRIMARY KEY, c2 BIT(8));
CREATE TABLE t6(c1 BIT(8), c2 BIT(8));
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
--sorted_result
SELECT HEX(c1),HEX(c2) FROM t5;
@@ -17326,13 +17326,13 @@ SELECT * FROM t7;
############# UPDATE ###########
# Update order by limit
-UPDATE t6 SET c1='10' WHERE c2 > 100 ORDER BY c2 LIMIT 1;
+UPDATE IGNORE t6 SET c1='10' WHERE c2 > 100 ORDER BY c2 LIMIT 1;
# Update with arithmetic operations
UPDATE t6 SET c1=c2+c1 WHERE c2 < 100;
-UPDATE t6 SET c2=c2+100 WHERE c1 >=100 ORDER BY c1 LIMIT 4;
+UPDATE IGNORE t6 SET c2=c2+100 WHERE c1 >=100 ORDER BY c1 LIMIT 4;
# Update with NULL ( NULL to number & number to NULL)
@@ -17352,7 +17352,7 @@ UPDATE t6 SET c2=123 WHERE c1 IN (30,b'101',88);
# Update outside range would be clipped to closest endpoints
UPDATE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
-UPDATE t6 SET c2=-1 WHERE c1=94;
+UPDATE IGNORE t6 SET c2=-1 WHERE c1=94;
# Update ignore on bad null error
@@ -17368,7 +17368,7 @@ SET SQL_MODE=DEFAULT;
#Multi table update
--disable_warnings
-UPDATE t5,t6 SET t5.c2=t6.c1+t5.c1, t6.c2=t5.c1+t6.c1 WHERE t5.c1 > 100 OR t6.c2 > 100;
+UPDATE IGNORE t5,t6 SET t5.c2=t6.c1+t5.c1, t6.c2=t5.c1+t6.c1 WHERE t5.c1 > 100 OR t6.c2 > 100;
--enable_warnings
--sorted_result
SELECT hex(c1),hex(c2) FROM t5;
@@ -17408,7 +17408,7 @@ TRUNCATE t5;
TRUNCATE t6;
INSERT IGNORE INTO t5 VALUES (95, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (69, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135);
-INSERT INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
+INSERT IGNORE INTO t6 VALUES (94, 46), (31, 438), (61, 152), (78, 123), (88, 411), (122, 118), (0, 177),(75, 42), (108, 67), (79, 349), (59, 188), (68, 206), (49, 345), (118, 380),(111, 368), (94, 468), (56, 379), (77, 133), (29, 399), (9, 363), (23, 36),(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),(44, 307), (68, 454), (57, 135),(null,23),(1,null),(null,null);
# Delete by order by limit
DELETE FROM t6 WHERE c2 > 100 ORDER BY c2 LIMIT 1;
@@ -17493,11 +17493,11 @@ set @v5=repeat('10',@v2);
let $STR0= query_get_value(select @v3 as I,I,1);
let $STR2= query_get_value(select @v4 as I,I,1);
let $STR3= query_get_value(select @v5 as I,I,1);
-eval INSERT INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
+eval INSERT IGNORE INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
dec $i;
}
-INSERT INTO t1 VALUES (b'10101010101010101010101010101010101010101010101010101010101010101');
-INSERT INTO t2 VALUES (b'10101010101010101010101010101010101010101010101010101010101010101', b'10101010101010101010101010101010101010101010101010101010101010101', b'10101010101010101010101010101010101010101010101010101010101010101');
+INSERT IGNORE INTO t1 VALUES (b'10101010101010101010101010101010101010101010101010101010101010101');
+INSERT IGNORE INTO t2 VALUES (b'10101010101010101010101010101010101010101010101010101010101010101', b'10101010101010101010101010101010101010101010101010101010101010101', b'10101010101010101010101010101010101010101010101010101010101010101');
--sorted_result
SELECT HEX(c1) FROM t1;
--sorted_result
@@ -17639,7 +17639,7 @@ UPDATE t6 SET c2=123 WHERE c1 IN (30,b'101',88);
# Update outside range would be clipped to closest endpoints
UPDATE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
-UPDATE t6 SET c2=-1 WHERE c1=94;
+UPDATE IGNORE t6 SET c2=-1 WHERE c1=94;
# Update ignore on bad null error
@@ -17780,11 +17780,11 @@ set @v5=repeat('10',@v2);
let $STR0= query_get_value(select @v3 as I,I,1);
let $STR2= query_get_value(select @v4 as I,I,1);
let $STR3= query_get_value(select @v5 as I,I,1);
-eval INSERT INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
+eval INSERT IGNORE INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
dec $i;
}
-INSERT INTO t1 VALUES (b'10101010101010101010101010101010101010101010101010101010101010101');
-INSERT INTO t2 VALUES (b'10101010101010101010101010101010101010101010101010101010101010101', b'10101010101010101010101010101010101010101010101010101010101010101', b'10101010101010101010101010101010101010101010101010101010101010101');
+INSERT IGNORE INTO t1 VALUES (b'10101010101010101010101010101010101010101010101010101010101010101');
+INSERT IGNORE INTO t2 VALUES (b'10101010101010101010101010101010101010101010101010101010101010101', b'10101010101010101010101010101010101010101010101010101010101010101', b'10101010101010101010101010101010101010101010101010101010101010101');
--sorted_result
SELECT HEX(c1) FROM t1;
--sorted_result
@@ -17926,7 +17926,7 @@ UPDATE t6 SET c2=123 WHERE c1 IN (30,b'101',88);
# Update outside range would be clipped to closest endpoints
UPDATE t6 SET c1=b'1111111111111111111111111111111111111111111111111111111111111111111' WHERE c2 < 10;
-UPDATE t6 SET c2=-1 WHERE c1=94;
+UPDATE IGNORE t6 SET c2=-1 WHERE c1=94;
# Update ignore on bad null error
@@ -18067,11 +18067,11 @@ set @v5=repeat('10',@v2);
let $STR0= query_get_value(select @v3 as I,I,1);
let $STR2= query_get_value(select @v4 as I,I,1);
let $STR3= query_get_value(select @v5 as I,I,1);
-eval INSERT INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
+eval INSERT IGNORE INTO t2 VALUES ("b'$STR0'","b'$STR2","b'$STR3'");
dec $i;
}
-INSERT INTO t1 VALUES (b'10101010101010101010101010101010101010101010101010101010101010101');
-INSERT INTO t2 VALUES (b'10101010101010101010101010101010101010101010101010101010101010101', b'10101010101010101010101010101010101010101010101010101010101010101', b'10101010101010101010101010101010101010101010101010101010101010101');
+INSERT IGNORE INTO t1 VALUES (b'10101010101010101010101010101010101010101010101010101010101010101');
+INSERT IGNORE INTO t2 VALUES (b'10101010101010101010101010101010101010101010101010101010101010101', b'10101010101010101010101010101010101010101010101010101010101010101', b'10101010101010101010101010101010101010101010101010101010101010101');
--sorted_result
SELECT HEX(c1) FROM t1;
--sorted_result
diff --git a/mysql-test/suite/engines/iuds/t/update_decimal.test b/mysql-test/suite/engines/iuds/t/update_decimal.test
index aa96665e82d..bf302e6a1e6 100644
--- a/mysql-test/suite/engines/iuds/t/update_decimal.test
+++ b/mysql-test/suite/engines/iuds/t/update_decimal.test
@@ -13,7 +13,7 @@ CREATE TABLE t1(c1 DECIMAL(10,5) UNSIGNED NOT NULL, c2 DECIMAL(10,5) SIGNED NULL
INSERT INTO t1 VALUES('00100.05000','-00100.05000','00100119',1),('11111.00009','-9999.99999','9999999',2);
# DECIMAL := DECIMAL(10,0); Decimal values in c3 will be stripped;
-INSERT INTO t1 VALUES('1000000','10000000','1000000000.0001',3);
+INSERT IGNORE INTO t1 VALUES('1000000','10000000','1000000000.0001',3);
# c1, c2, c3 will be rounded automatically
INSERT INTO t1 values('100.000001','1000.999999','9999.999999',4);
@@ -23,8 +23,8 @@ INSERT INTO t1 VALUES('99999.99999','-99999.99999','9999999999',5);
# Test insert leading zero, +/- signs, overflow handling
INSERT INTO t1 VALUES ("0.0","0.0","0.0",6),("01.0","01.0","01.0",7);
-INSERT INTO t1 VALUES ("-.1","-.1","-.1",8);
-INSERT INTO t1 VALUES ("+111111111.11","+111111111.11","+111111111.11",9);
+INSERT IGNORE INTO t1 VALUES ("-.1","-.1","-.1",8);
+INSERT IGNORE INTO t1 VALUES ("+111111111.11","+111111111.11","+111111111.11",9);
# Inserting in scientific notations
INSERT INTO t1 VALUES('1.0e+4','1.0e-5','1.0e+9',10);
@@ -41,7 +41,7 @@ UPDATE t1 SET c1='10001.00001' WHERE c2 > 100 ORDER BY c2 LIMIT 1;
SELECT c1,c2 FROM t1;
# Update with arithmetic operations
-UPDATE t1 SET c1=c2+c3 WHERE c3 < 10000;
+UPDATE IGNORE t1 SET c1=c2+c3 WHERE c3 < 10000;
--sorted_result
SELECT * FROM t1;
UPDATE t1 SET c2=c2+100 WHERE c1 >=100 ORDER BY c1 LIMIT 4;
@@ -57,11 +57,11 @@ UPDATE t1 SET c2=1.0e+5 WHERE c2=NULL;
SELECT * FROM t1;
# Update negative value to unsigned column
-UPDATE t1 SET c1=-1.0e+2 WHERE c4=2;
+UPDATE IGNORE t1 SET c1=-1.0e+2 WHERE c4=2;
SHOW WARNINGS;
--sorted_result
SELECT * FROM t1;
-UPDATE t1 SET c1=1.0e+20 WHERE c4=2;
+UPDATE IGNORE t1 SET c1=1.0e+20 WHERE c4=2;
SHOW WARNINGS;
--sorted_result
SELECT * FROM t1;
@@ -78,7 +78,7 @@ UPDATE t1 SET c3=1234567890 WHERE c4 IN (4,5,6);
SELECT * FROM t1;
# Update outside range would be clipped to closest endpoints
-UPDATE t1 SET c1=99999.999999 WHERE c4=7;
+UPDATE IGNORE t1 SET c1=99999.999999 WHERE c4=7;
--sorted_result
SELECT c1,c4 FROM t1;
UPDATE t1 SET c2=-9999.0099 WHERE c4=5;
@@ -158,10 +158,10 @@ INSERT INTO t3 VALUES ('11111.11111','4444444444',1),('55555.55555','5555555555'
UPDATE t2,t3 SET t3.c1='22222.22222' WHERE t2.c1=t3.c1 AND t2.c3=t3.c3;
#Updating with invalid values
-UPDATE t1 SET c3='asdf' WHERE c1='11111.11111';
+UPDATE IGNORE t1 SET c3='asdf' WHERE c1='11111.11111';
--sorted_result
SELECT c3 FROM t1;
-UPDATE t1 SET c2="1 e 1" WHERE c4=2;
+UPDATE IGNORE t1 SET c2="1 e 1" WHERE c4=2;
--sorted_result
SELECT c2 FROM t1;
@@ -193,7 +193,7 @@ CREATE TABLE t1(c1 FLOAT(10,5) UNSIGNED NOT NULL, c2 FLOAT(10,5) SIGNED NULL, c3
INSERT INTO t1 VALUES('00100.05000','-00100.05000','00100119',1),('11111.00009','-9999.99999','9999999',2);
# DECIMAL := DECIMAL(10,0); Decimal values in c3 will be stripped;
-INSERT INTO t1 VALUES('1000000','10000000','1000000000.0001',3);
+INSERT IGNORE INTO t1 VALUES('1000000','10000000','1000000000.0001',3);
# c1, c2, c3 will be rounded automatically
INSERT INTO t1 values('100.000001','1000.999999','9999.999999',4);
@@ -203,8 +203,8 @@ INSERT INTO t1 VALUES('99999.99999','-99999.99999','9999999999',5);
# Test insert leading zero, +/- signs, overflow handling
INSERT INTO t1 VALUES ("0.0","0.0","0.0",6),("01.0","01.0","01.0",7);
-INSERT INTO t1 VALUES ("-.1","-.1","-.1",8);
-INSERT INTO t1 VALUES ("+111111111.11","+111111111.11","+111111111.11",9);
+INSERT IGNORE INTO t1 VALUES ("-.1","-.1","-.1",8);
+INSERT IGNORE INTO t1 VALUES ("+111111111.11","+111111111.11","+111111111.11",9);
# Inserting in scientific notations
INSERT INTO t1 VALUES('1.0e+4','1.0e-5','1.0e+9',10);
@@ -221,7 +221,7 @@ UPDATE t1 SET c1='10001.00001' WHERE c2 > 100 ORDER BY c2 LIMIT 1;
SELECT c1,c2 FROM t1;
# Update with arithmetic operations
-UPDATE t1 SET c1=c2+c3 WHERE c3 < 10000;
+UPDATE IGNORE t1 SET c1=c2+c3 WHERE c3 < 10000;
--sorted_result
SELECT * FROM t1;
UPDATE t1 SET c2=c2+100 WHERE c1 >=100 ORDER BY c1 LIMIT 4;
@@ -237,11 +237,11 @@ UPDATE t1 SET c2=1.0e+5 WHERE c2=NULL;
SELECT * FROM t1;
# Update negative value to unsigned column
-UPDATE t1 SET c1=-1.0e+2 WHERE c4=2;
+UPDATE IGNORE t1 SET c1=-1.0e+2 WHERE c4=2;
SHOW WARNINGS;
--sorted_result
SELECT * FROM t1;
-UPDATE t1 SET c1=1.0e+20 WHERE c4=2;
+UPDATE IGNORE t1 SET c1=1.0e+20 WHERE c4=2;
SHOW WARNINGS;
--sorted_result
SELECT * FROM t1;
@@ -258,7 +258,7 @@ UPDATE t1 SET c3=1234567890 WHERE c4 IN (4,5,6);
SELECT * FROM t1;
# Update outside range would be clipped to closest endpoints
-UPDATE t1 SET c1=99999.999999 WHERE c4=7;
+UPDATE IGNORE t1 SET c1=99999.999999 WHERE c4=7;
--sorted_result
SELECT c1,c4 FROM t1;
UPDATE t1 SET c2=-9999.0099 WHERE c4=5;
@@ -347,7 +347,7 @@ UPDATE t2,t3 SET t3.c1='22222.22222' WHERE t2.c1=t3.c1 AND t2.c3=t3.c3;
UPDATE t1 SET c3='asdf' WHERE c1='11111.11111';
--sorted_result
SELECT c3 FROM t1;
-UPDATE t1 SET c2="1 e 1" WHERE c4=2;
+UPDATE IGNORE t1 SET c2="1 e 1" WHERE c4=2;
--replace_result 88888.89063 88888.89062
--sorted_result
SELECT c2 FROM t1;
@@ -382,7 +382,7 @@ CREATE TABLE t1(c1 DOUBLE(10,5) UNSIGNED NOT NULL, c2 DOUBLE(10,5) SIGNED NULL,
INSERT INTO t1 VALUES('00100.05000','-00100.05000','00100119',1),('11111.00009','-9999.99999','9999999',2);
# DECIMAL := DECIMAL(10,0); Decimal values in c3 will be stripped;
-INSERT INTO t1 VALUES('1000000','10000000','1000000000.0001',3);
+INSERT IGNORE INTO t1 VALUES('1000000','10000000','1000000000.0001',3);
# c1, c2, c3 will be rounded automatically
INSERT INTO t1 values('100.000001','1000.999999','9999.999999',4);
@@ -392,8 +392,8 @@ INSERT INTO t1 VALUES('99999.99999','-99999.99999','9999999999',5);
# Test insert leading zero, +/- signs, overflow handling
INSERT INTO t1 VALUES ("0.0","0.0","0.0",6),("01.0","01.0","01.0",7);
-INSERT INTO t1 VALUES ("-.1","-.1","-.1",8);
-INSERT INTO t1 VALUES ("+111111111.11","+111111111.11","+111111111.11",9);
+INSERT IGNORE INTO t1 VALUES ("-.1","-.1","-.1",8);
+INSERT IGNORE INTO t1 VALUES ("+111111111.11","+111111111.11","+111111111.11",9);
# Inserting in scientific notations
INSERT INTO t1 VALUES('1.0e+4','1.0e-5','1.0e+9',10);
@@ -410,7 +410,7 @@ UPDATE t1 SET c1='10001.00001' WHERE c2 > 100 ORDER BY c2 LIMIT 1;
SELECT c1,c2 FROM t1;
# Update with arithmetic operations
-UPDATE t1 SET c1=c2+c3 WHERE c3 < 10000;
+UPDATE IGNORE t1 SET c1=c2+c3 WHERE c3 < 10000;
--sorted_result
SELECT * FROM t1;
UPDATE t1 SET c2=c2+100 WHERE c1 >=100 ORDER BY c1 LIMIT 4;
@@ -426,11 +426,11 @@ UPDATE t1 SET c2=1.0e+5 WHERE c2=NULL;
SELECT * FROM t1;
# Update negative value to unsigned column
-UPDATE t1 SET c1=-1.0e+2 WHERE c4=2;
+UPDATE IGNORE t1 SET c1=-1.0e+2 WHERE c4=2;
SHOW WARNINGS;
--sorted_result
SELECT * FROM t1;
-UPDATE t1 SET c1=1.0e+20 WHERE c4=2;
+UPDATE IGNORE t1 SET c1=1.0e+20 WHERE c4=2;
SHOW WARNINGS;
--sorted_result
SELECT * FROM t1;
@@ -447,7 +447,7 @@ UPDATE t1 SET c3=1234567890 WHERE c4 IN (4,5,6);
SELECT * FROM t1;
# Update outside range would be clipped to closest endpoints
-UPDATE t1 SET c1=99999.999999 WHERE c4=7;
+UPDATE IGNORE t1 SET c1=99999.999999 WHERE c4=7;
--sorted_result
SELECT c1,c4 FROM t1;
UPDATE t1 SET c2=-9999.0099 WHERE c4=5;
@@ -527,10 +527,10 @@ INSERT INTO t3 VALUES ('11111.11111','4444444444',1),('55555.55555','5555555555'
UPDATE t2,t3 SET t3.c1='22222.22222' WHERE t2.c1=t3.c1 AND t2.c3=t3.c3;
#Updating with invalid values
-UPDATE t1 SET c3='asdf' WHERE c1='11111.11111';
+UPDATE IGNORE t1 SET c3='asdf' WHERE c1='11111.11111';
--sorted_result
SELECT c3 FROM t1;
-UPDATE t1 SET c2="1 e 1" WHERE c4=2;
+UPDATE IGNORE t1 SET c2="1 e 1" WHERE c4=2;
--sorted_result
SELECT c2 FROM t1;
diff --git a/mysql-test/suite/engines/iuds/t/update_delete_number.test b/mysql-test/suite/engines/iuds/t/update_delete_number.test
index b8af78606d2..c58746d59f4 100644
--- a/mysql-test/suite/engines/iuds/t/update_delete_number.test
+++ b/mysql-test/suite/engines/iuds/t/update_delete_number.test
@@ -26,7 +26,7 @@ UPDATE t1 SET c1=120 WHERE c2 IS NULL;
SELECT c1,c2 FROM t1 WHERE c1=120;
# Update negative value to unsigned col
-UPDATE t1 SET c1=-120 WHERE c2=-102;
+UPDATE IGNORE t1 SET c1=-120 WHERE c2=-102;
--sorted_result
SELECT c1,c2 FROM t1 WHERE c2=-102;
@@ -43,11 +43,11 @@ SELECT * FROM t1 WHERE c2=0;
# Update outside range, would be clipped to closest endpoint
INSERT INTO t1 VALUES(106,-106,9),(107,-107,10),(108,-108,11),(109,-109,12),(255,127,13);
-UPDATE t1 SET c1=4294967296,c2=2147483648 WHERE c2 BETWEEN -108 AND -106;
+UPDATE IGNORE t1 SET c1=4294967296,c2=2147483648 WHERE c2 BETWEEN -108 AND -106;
SELECT COUNT(*) FROM t1 WHERE c1=4294967296 AND c2=2147483648 /* no rows */;
--sorted_result
SELECT * FROM t1 WHERE c1=4294967295 AND c2=2147483647;
-UPDATE t1 SET c2=-2147483649 WHERE c1=109 ORDER BY c1;
+UPDATE IGNORE t1 SET c2=-2147483649 WHERE c1=109 ORDER BY c1;
--sorted_result
SELECT c1,c2 FROM t1 WHERE c1=109;
@@ -60,7 +60,7 @@ UPDATE IGNORE t1 SET c1=NULL WHERE c2=-110 /* updates to default value 0 */;
--sorted_result
SELECT c1,c2 FROM t1 WHERE c2=-110;
SET SQL_MODE=DEFAULT;
-UPDATE t1 SET c1=NULL WHERE c2=-111 /* updates to default value 0 */;
+UPDATE IGNORE t1 SET c1=NULL WHERE c2=-111 /* updates to default value 0 */;
--sorted_result
SELECT * FROM t1 WHERE c1=0;
@@ -94,7 +94,7 @@ SELECT c1 FROM t2 WHERE c2=13;
# Update the unsigned auto_increment field
UPDATE t1 SET c1=4294967295,c2=2147483647 WHERE c2=13;
SELECT c1,c2 FROM t1 ORDER BY c1;
-UPDATE t2 SET c1=0,c2=-2147483648 WHERE c2=2;
+UPDATE IGNORE t2 SET c1=0,c2=-2147483648 WHERE c2=2;
SELECT c1,c2 FROM t1 ORDER BY c1;
UPDATE t2 SET c2=0 WHERE c2=5;
SELECT c1,c2 FROM t1 ORDER BY c1;
@@ -604,7 +604,7 @@ UPDATE t1 SET c1=120 WHERE c2 IS NULL;
SELECT c1,c2 FROM t1 WHERE c1=120;
# Update negative value to unsigned col
-UPDATE t1 SET c1=-120 WHERE c2=-102;
+UPDATE IGNORE t1 SET c1=-120 WHERE c2=-102;
--sorted_result
SELECT c1,c2 FROM t1 WHERE c2=-102;
@@ -621,11 +621,11 @@ SELECT * FROM t1 WHERE c2=0;
# Update outside range, would be clipped to closest endpoint
INSERT INTO t1 VALUES(106,-106,9),(107,-107,10),(108,-108,11),(109,-109,12),(255,127,13);
-UPDATE t1 SET c1=256,c2=128 WHERE c2 BETWEEN -108 AND -106;
+UPDATE IGNORE t1 SET c1=256,c2=128 WHERE c2 BETWEEN -108 AND -106;
SELECT COUNT(*) FROM t1 WHERE c1=256 AND c2=128 /* no rows */;
--sorted_result
SELECT * FROM t1 WHERE c1=255 AND c2=127;
-UPDATE t1 SET c2=-129 WHERE c1=109 ORDER BY c1;
+UPDATE IGNORE t1 SET c2=-129 WHERE c1=109 ORDER BY c1;
--sorted_result
SELECT c1,c2 FROM t1 WHERE c1=109;
@@ -638,7 +638,7 @@ UPDATE IGNORE t1 SET c1=NULL WHERE c2=-110 /* updates to default value 0 */;
--sorted_result
SELECT c1,c2 FROM t1 WHERE c2=-110;
SET SQL_MODE=DEFAULT;
-UPDATE t1 SET c1=NULL WHERE c2=-111 /* updates to default value 0 */;
+UPDATE IGNORE t1 SET c1=NULL WHERE c2=-111 /* updates to default value 0 */;
--sorted_result
SELECT * FROM t1 WHERE c1=0;
@@ -672,7 +672,7 @@ SELECT c1 FROM t2 WHERE c2=13;
# Update the unsigned auto_increment field
UPDATE t1 SET c1=255,c2=127 WHERE c2=13;
SELECT c1,c2 FROM t1 ORDER BY c1;
-UPDATE t2 SET c1=0,c2=-128 WHERE c2=2;
+UPDATE IGNORE t2 SET c1=0,c2=-128 WHERE c2=2;
SELECT c1,c2 FROM t1 ORDER BY c1;
UPDATE t2 SET c2=0 WHERE c2=5;
SELECT c1,c2 FROM t1 ORDER BY c1;
@@ -787,7 +787,7 @@ update mt1,mt2 set mt1.a=mt1.a+100;
--sorted_result
select * from mt1;
# unique key
-update mt1,mt2 set mt1.a=mt1.a+100 where mt1.a=101;
+update ignore mt1,mt2 set mt1.a=mt1.a+100 where mt1.a=101;
--sorted_result
select * from mt1;
# ref key
@@ -904,7 +904,7 @@ UPDATE t1 SET c1=120 WHERE c2 IS NULL;
SELECT c1,c2 FROM t1 WHERE c1=120;
# Update negative value to unsigned col
-UPDATE t1 SET c1=-120 WHERE c2=-102;
+UPDATE IGNORE t1 SET c1=-120 WHERE c2=-102;
--sorted_result
SELECT c1,c2 FROM t1 WHERE c2=-102;
@@ -921,11 +921,11 @@ SELECT * FROM t1 WHERE c2=0;
# Update outside range, would be clipped to closest endpoint
INSERT INTO t1 VALUES(106,-106,9),(107,-107,10),(108,-108,11),(109,-109,12),(255,127,13);
-UPDATE t1 SET c1=65536,c2=32768 WHERE c2 BETWEEN -108 AND -106;
+UPDATE IGNORE t1 SET c1=65536,c2=32768 WHERE c2 BETWEEN -108 AND -106;
SELECT COUNT(*) FROM t1 WHERE c1=65536 AND c2=32768 /* no rows */;
--sorted_result
SELECT * FROM t1 WHERE c1=65535 AND c2=32767;
-UPDATE t1 SET c2=-32769 WHERE c1=109 ORDER BY c1;
+UPDATE IGNORE t1 SET c2=-32769 WHERE c1=109 ORDER BY c1;
--sorted_result
SELECT c1,c2 FROM t1 WHERE c1=109;
@@ -938,7 +938,7 @@ UPDATE IGNORE t1 SET c1=NULL WHERE c2=-110 /* updates to default value 0 */;
--sorted_result
SELECT c1,c2 FROM t1 WHERE c2=-110;
SET SQL_MODE=DEFAULT;
-UPDATE t1 SET c1=NULL WHERE c2=-111 /* updates to default value 0 */;
+UPDATE IGNORE t1 SET c1=NULL WHERE c2=-111 /* updates to default value 0 */;
--sorted_result
SELECT * FROM t1 WHERE c1=0;
@@ -972,7 +972,7 @@ SELECT c1 FROM t2 WHERE c2=13;
# Update the unsigned auto_increment field
UPDATE t1 SET c1=65535,c2=32767 WHERE c2=13;
SELECT c1,c2 FROM t1 ORDER BY c1;
-UPDATE t2 SET c1=0,c2=-32768 WHERE c2=2;
+UPDATE IGNORE t2 SET c1=0,c2=-32768 WHERE c2=2;
SELECT c1,c2 FROM t1 ORDER BY c1;
UPDATE t2 SET c2=0 WHERE c2=5;
SELECT c1,c2 FROM t1 ORDER BY c1;
@@ -1205,7 +1205,7 @@ UPDATE t1 SET c1=120 WHERE c2 IS NULL;
SELECT c1,c2 FROM t1 WHERE c1=120;
# Update negative value to unsigned col
-UPDATE t1 SET c1=-120 WHERE c2=-102;
+UPDATE IGNORE t1 SET c1=-120 WHERE c2=-102;
--sorted_result
SELECT c1,c2 FROM t1 WHERE c2=-102;
@@ -1222,11 +1222,11 @@ SELECT * FROM t1 WHERE c2=0;
# Update outside range, would be clipped to closest endpoint
INSERT INTO t1 VALUES(106,-106,9),(107,-107,10),(108,-108,11),(109,-109,12),(255,127,13);
-UPDATE t1 SET c1=16777216,c2=8388608 WHERE c2 BETWEEN -108 AND -106;
+UPDATE IGNORE t1 SET c1=16777216,c2=8388608 WHERE c2 BETWEEN -108 AND -106;
SELECT COUNT(*) FROM t1 WHERE c1=16777216 AND c2=8388608 /* no rows */;
--sorted_result
SELECT * FROM t1 WHERE c1=16777215 AND c2=8388607;
-UPDATE t1 SET c2=-8388609 WHERE c1=109 ORDER BY c1;
+UPDATE IGNORE t1 SET c2=-8388609 WHERE c1=109 ORDER BY c1;
--sorted_result
SELECT c1,c2 FROM t1 WHERE c1=109;
@@ -1239,7 +1239,7 @@ UPDATE IGNORE t1 SET c1=NULL WHERE c2=-110 /* updates to default value 0 */;
--sorted_result
SELECT c1,c2 FROM t1 WHERE c2=-110;
SET SQL_MODE=DEFAULT;
-UPDATE t1 SET c1=NULL WHERE c2=-111 /* updates to default value 0 */;
+UPDATE IGNORE t1 SET c1=NULL WHERE c2=-111 /* updates to default value 0 */;
--sorted_result
SELECT * FROM t1 WHERE c1=0;
@@ -1273,7 +1273,7 @@ SELECT c1 FROM t2 WHERE c2=13;
# Update the unsigned auto_increment field
UPDATE t1 SET c1=16777215,c2=8388607 WHERE c2=13;
SELECT c1,c2 FROM t1 ORDER BY c1;
-UPDATE t2 SET c1=0,c2=-8388608 WHERE c2=2;
+UPDATE IGNORE t2 SET c1=0,c2=-8388608 WHERE c2=2;
SELECT c1,c2 FROM t1 ORDER BY c1;
UPDATE t2 SET c2=0 WHERE c2=5;
SELECT c1,c2 FROM t1 ORDER BY c1;
@@ -1506,7 +1506,7 @@ UPDATE t1 SET c1=120 WHERE c2 IS NULL;
SELECT c1,c2 FROM t1 WHERE c1=120;
# Update negative value to unsigned col
-UPDATE t1 SET c1=-120 WHERE c2=-102;
+UPDATE IGNORE t1 SET c1=-120 WHERE c2=-102;
--sorted_result
SELECT c1,c2 FROM t1 WHERE c2=-102;
@@ -1523,11 +1523,11 @@ SELECT * FROM t1 WHERE c2=0;
# Update outside range, would be clipped to closest endpoint
INSERT INTO t1 VALUES(106,-106,9),(107,-107,10),(108,-108,11),(109,-109,12),(255,127,13);
-UPDATE t1 SET c1=18446744073709551616,c2=9223372036854775808 WHERE c2 BETWEEN -108 AND -106;
+UPDATE IGNORE t1 SET c1=18446744073709551616,c2=9223372036854775808 WHERE c2 BETWEEN -108 AND -106;
SELECT COUNT(*) FROM t1 WHERE c1=18446744073709551616 AND c2=9223372036854775808 /* no rows */;
--sorted_result
SELECT * FROM t1 WHERE c1=18446744073709551615 AND c2=9223372036854775807;
-UPDATE t1 SET c2=-9223372036854775809 WHERE c1=109 ORDER BY c1;
+UPDATE IGNORE t1 SET c2=-9223372036854775809 WHERE c1=109 ORDER BY c1;
--sorted_result
SELECT c1,c2 FROM t1 WHERE c1=109;
@@ -1540,7 +1540,7 @@ UPDATE IGNORE t1 SET c1=NULL WHERE c2=-110 /* updates to default value 0 */;
--sorted_result
SELECT c1,c2 FROM t1 WHERE c2=-110;
SET SQL_MODE=DEFAULT;
-UPDATE t1 SET c1=NULL WHERE c2=-111 /* updates to default value 0 */;
+UPDATE IGNORE t1 SET c1=NULL WHERE c2=-111 /* updates to default value 0 */;
--sorted_result
SELECT * FROM t1 WHERE c1=0;
@@ -1574,7 +1574,7 @@ SELECT c1 FROM t2 WHERE c2=13;
# Update the unsigned auto_increment field
UPDATE t1 SET c1=18446744073709551615,c2=9223372036854775807 WHERE c2=13;
SELECT c1,c2 FROM t1 ORDER BY c1;
-UPDATE t2 SET c1=0,c2=-9223372036854775808 WHERE c2=2;
+UPDATE IGNORE t2 SET c1=0,c2=-9223372036854775808 WHERE c2=2;
SELECT c1,c2 FROM t1 ORDER BY c1;
UPDATE t2 SET c2=0 WHERE c2=5;
SELECT c1,c2 FROM t1 ORDER BY c1;
diff --git a/mysql-test/suite/engines/iuds/t/update_time.test b/mysql-test/suite/engines/iuds/t/update_time.test
index 4b5f89580be..5ce69b46986 100644
--- a/mysql-test/suite/engines/iuds/t/update_time.test
+++ b/mysql-test/suite/engines/iuds/t/update_time.test
@@ -119,19 +119,19 @@ UPDATE t2 SET c2='1111' WHERE c1 IN ('100:04:04',005454,'2:2:2',111111);
SELECT c2 FROM t2;
#Update outside range would be clipped to closest endpoints
-UPDATE t4 SET c2='-838:59:60' WHERE c1='100:04:04';
+UPDATE IGNORE t4 SET c2='-838:59:60' WHERE c1='100:04:04';
--sorted_result
SELECT c2 FROM t4;
-UPDATE t4 SET c2='838:59:60' WHERE c1='100:04:04';
+UPDATE IGNORE t4 SET c2='838:59:60' WHERE c1='100:04:04';
--sorted_result
SELECT c2 FROM t4;
UPDATE t4 SET c2='00:00:00' WHERE c1='100:04:04';
--sorted_result
SELECT c2 FROM t4;
-UPDATE t4 SET c2='11:11:60' WHERE c1='100:04:04';
+UPDATE IGNORE t4 SET c2='11:11:60' WHERE c1='100:04:04';
--sorted_result
SELECT c2 FROM t4;
-UPDATE t4 SET c2='11:60:11' WHERE c1='100:04:04';
+UPDATE IGNORE t4 SET c2='11:60:11' WHERE c1='100:04:04';
--sorted_result
SELECT c2 FROM t4;
@@ -151,7 +151,7 @@ SET SQL_MODE=DEFAULT;
UPDATE t1 SET c1=8385958 WHERE c2='34 22:59:59';
#Update with invalid values
-UPDATE t1 SET c2='def' WHERE c1=59;
+UPDATE IGNORE t1 SET c2='def' WHERE c1=59;
--sorted_result
SELECT c2 FROM t1;
--error ER_PARSE_ERROR
@@ -172,11 +172,11 @@ SELECT * FROM t1;
# Update using range
# EXPLAIN SELECT * FROM t1 WHERE c1 BETWEEN 080000 AND 100000;
-UPDATE t1 SET t1.c2='99999.99999' WHERE c1 BETWEEN 080000 AND 100000;
+UPDATE IGNORE t1 SET t1.c2='99999.99999' WHERE c1 BETWEEN 080000 AND 100000;
--sorted_result
SELECT * FROM t1;
# EXPLAIN SELECT * FROM t1 WHERE c1 IN (222222,8385955,1500000);
-UPDATE t1 SET c1=c1+1,c2=c2-1 WHERE c1 IN (222222,8385955,1500000) ORDER BY c1;
+UPDATE IGNORE t1 SET c1=c1+1,c2=c2-1 WHERE c1 IN (222222,8385955,1500000) ORDER BY c1;
--sorted_result
SELECT * FROM t1;
diff --git a/mysql-test/suite/engines/iuds/t/update_year.test b/mysql-test/suite/engines/iuds/t/update_year.test
index d1f06293716..599c637e442 100644
--- a/mysql-test/suite/engines/iuds/t/update_year.test
+++ b/mysql-test/suite/engines/iuds/t/update_year.test
@@ -128,22 +128,22 @@ UPDATE t4 SET c1=99 WHERE c2 IN (01,54,65,69,null);
SELECT c1 FROM t4;
# Update outside range would be clipped to closest endpoints
-UPDATE t1 SET c2=-1 WHERE c1=2071;
+UPDATE IGNORE t1 SET c2=-1 WHERE c1=2071;
--sorted_result
SELECT c2 FROM t1;
UPDATE t1 SET c2=0 WHERE c1=2003;
--sorted_result
SELECT c2 FROM t1;
-UPDATE t1 SET c2=2156 WHERE c1=2001;
+UPDATE IGNORE t1 SET c2=2156 WHERE c1=2001;
--sorted_result
SELECT c2 FROM t1;
-UPDATE t4 SET c2=-1 WHERE c1=71;
+UPDATE IGNORE t4 SET c2=-1 WHERE c1=71;
--sorted_result
SELECT c2 FROM t4;
UPDATE t4 SET c2=0 WHERE c1=70;
--sorted_result
SELECT c2 FROM t4;
-UPDATE t4 SET c2=100 WHERE c1=79;
+UPDATE IGNORE t4 SET c2=100 WHERE c1=79;
--sorted_result
SELECT c2 FROM t4;
@@ -162,7 +162,7 @@ SET SQL_MODE=DEFAULT
#UPDATE t2 SET c1='def' WHERE c2=2064;
#--sorted_result
#SELECT c1 FROM t2;
-UPDATE t4 SET c1=-70 WHERE c2=75;
+UPDATE IGNORE t4 SET c1=-70 WHERE c2=75;
--sorted_result
SELECT c1 FROM t4;
@@ -187,7 +187,7 @@ UPDATE t1 SET t1.c2=0000 WHERE c1 BETWEEN 2000 AND 2010;
--sorted_result
SELECT * FROM t1;
# EXPLAIN SELECT * FROM t1 WHERE c1 IN (2154,2009,1979);
-UPDATE t1 SET c1=c1-1,c2=c2+1 WHERE c1 IN (2154,2009,1979);
+UPDATE IGNORE t1 SET c1=c1-1,c2=c2+1 WHERE c1 IN (2154,2009,1979);
--sorted_result
SELECT * FROM t1;