mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge branch '10.6' into 10.9
This commit is contained in:
@@ -12,7 +12,9 @@ insert into t1 () values
|
||||
(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),
|
||||
(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),
|
||||
(),(),(),();
|
||||
--disable_ps2_protocol
|
||||
select * into outfile 'load.data' from t1;
|
||||
--enable_ps2_protocol
|
||||
create temporary table tmp (a varchar(1024), b int, c int, d int, e linestring, unique (e));
|
||||
load data infile 'load.data' into table tmp;
|
||||
delete from tmp;
|
||||
@@ -224,7 +226,9 @@ drop table t1;
|
||||
--echo #
|
||||
CREATE TABLE t1 (data VARCHAR(4), unique(data) using hash) with system versioning;
|
||||
INSERT INTO t1 VALUES ('A');
|
||||
--disable_ps2_protocol
|
||||
SELECT * INTO OUTFILE 'load.data' from t1;
|
||||
--enable_ps2_protocol
|
||||
--error ER_DUP_ENTRY
|
||||
LOAD DATA INFILE 'load.data' INTO TABLE t1;
|
||||
select * from t1;
|
||||
@@ -238,7 +242,9 @@ DROP TABLE t1;
|
||||
CREATE TABLE t1 (data VARCHAR(7961)) ENGINE=InnoDB;
|
||||
|
||||
INSERT INTO t1 VALUES ('f'), ('o'), ('o');
|
||||
--disable_ps2_protocol
|
||||
SELECT * INTO OUTFILE 'load.data' from t1;
|
||||
--enable_ps2_protocol
|
||||
|
||||
ALTER IGNORE TABLE t1 ADD UNIQUE INDEX (data);
|
||||
SELECT * FROM t1;
|
||||
@@ -472,7 +478,9 @@ drop table t2;
|
||||
--echo #
|
||||
create table t1 (pk int primary key, f blob, unique(f)) engine=innodb;
|
||||
insert t1 values (1, null);
|
||||
--disable_ps2_protocol
|
||||
select * into outfile 't1.data' from t1;
|
||||
--enable_ps2_protocol
|
||||
load data infile 't1.data' replace into table t1;
|
||||
select * from t1;
|
||||
drop table t1;
|
||||
|
Reference in New Issue
Block a user