mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge mysql.com:/d2/hf/mrg/mysql-5.0-opt
into mysql.com:/d2/hf/mrg/mysql-5.1-opt
This commit is contained in:
@ -165,6 +165,15 @@ select load_file("MYSQL_TEST_DIR/t/loaddata.test");
|
||||
load_file("MYSQL_TEST_DIR/t/loaddata.test")
|
||||
NULL
|
||||
drop table t1, t2;
|
||||
create table t1(f1 int);
|
||||
insert into t1 values(1),(null);
|
||||
create table t2(f2 int auto_increment primary key);
|
||||
select * from t2;
|
||||
f2
|
||||
1
|
||||
2
|
||||
SET @@SQL_MODE=@OLD_SQL_MODE;
|
||||
drop table t1,t2;
|
||||
CREATE TABLE t1 (a int);
|
||||
INSERT INTO t1 VALUES (1);
|
||||
SET NAMES latin1;
|
||||
|
@ -140,6 +140,22 @@ eval select load_file("$MYSQL_TEST_DIR/t/loaddata.test");
|
||||
# cleanup
|
||||
drop table t1, t2;
|
||||
|
||||
#
|
||||
# Bug#27586: Wrong autoinc value assigned by LOAD DATA in the
|
||||
# NO_AUTO_VALUE_ON_ZERO mode
|
||||
#
|
||||
create table t1(f1 int);
|
||||
insert into t1 values(1),(null);
|
||||
create table t2(f2 int auto_increment primary key);
|
||||
disable_query_log;
|
||||
eval select * into outfile '$MYSQLTEST_VARDIR/tmp/t1' from t1;
|
||||
SET @OLD_SQL_MODE=@@SQL_MODE, @@SQL_MODE=NO_AUTO_VALUE_ON_ZERO;
|
||||
eval load data infile '$MYSQLTEST_VARDIR/tmp/t1' into table t2;
|
||||
enable_query_log;
|
||||
select * from t2;
|
||||
--exec rm $MYSQLTEST_VARDIR/tmp/t1
|
||||
SET @@SQL_MODE=@OLD_SQL_MODE;
|
||||
drop table t1,t2;
|
||||
# End of 5.0 tests
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user