Do not report ERROR when sample rate equals 100
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
drop table if exists t1,t2, test, t_ignore, t3;
|
||||
drop table if exists t1,t2, test, t_ignore;
|
||||
CREATE TABLE t1(a BIGINT primary key);
|
||||
insert into t1 values(100);
|
||||
insert into t1 values(100);
|
||||
@ -324,9 +324,3 @@ SELECT * FROM t_ignore;
|
||||
c1 c2
|
||||
1
|
||||
DROP TABLE t_ignore;
|
||||
create TABLE t3 ( str varchar(255) character set utf8mb4 not null, key str (str(2)) );
|
||||
INSERT ignore INTO t3 VALUES (NULL);
|
||||
ERROR 23000: Column 'str' cannot be null
|
||||
select /*+ opt_param('hidden_column_visible', 'true') index('str')*/__pk_increment, __substr2_16 from t3;
|
||||
__pk_increment __substr2_16
|
||||
drop table t3;
|
||||
|
||||
@ -8,7 +8,7 @@ set @@session.explicit_defaults_for_timestamp=off;
|
||||
|
||||
##增加新的语法,支持ignore
|
||||
--disable_warnings
|
||||
drop table if exists t1,t2, test, t_ignore, t3;
|
||||
drop table if exists t1,t2, test, t_ignore;
|
||||
--enable_warnings
|
||||
CREATE TABLE t1(a BIGINT primary key);
|
||||
|
||||
@ -185,9 +185,3 @@ CREATE TABLE t_ignore (`c1` bigint(20) NOT NULL AUTO_INCREMENT, `c2` varchar(50)
|
||||
INSERT IGNORE INTO t_ignore (c1) value (1);
|
||||
SELECT * FROM t_ignore;
|
||||
DROP TABLE t_ignore;
|
||||
|
||||
create TABLE t3 ( str varchar(255) character set utf8mb4 not null, key str (str(2)) );
|
||||
--error 1048
|
||||
INSERT ignore INTO t3 VALUES (NULL);
|
||||
select /*+ opt_param('hidden_column_visible', 'true') index('str')*/__pk_increment, __substr2_16 from t3;
|
||||
drop table t3;
|
||||
|
||||
Reference in New Issue
Block a user