mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
merged fixes for bug#37858
This commit is contained in:
@ -1658,9 +1658,9 @@ SELECT DISTINCT (SELECT a) FROM t1 LIMIT 100;
|
|||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
create table t1 (a int, b decimal(13, 3));
|
create table t1 (a int, b decimal(13, 3));
|
||||||
insert into t1 values (1, 0.123);
|
insert into t1 values (1, 0.123);
|
||||||
select a, (select max(b) from t1) into outfile "subselect.out.file.1" from t1;
|
select a, (select max(b) from t1) into outfile "../../tmp/subselect.out.file.1" from t1;
|
||||||
delete from t1;
|
delete from t1;
|
||||||
load data infile "subselect.out.file.1" into table t1;
|
load data infile "../../tmp/subselect.out.file.1" into table t1;
|
||||||
select * from t1;
|
select * from t1;
|
||||||
a b
|
a b
|
||||||
1 0.123
|
1 0.123
|
||||||
|
@ -1041,13 +1041,14 @@ DROP TABLE t1;
|
|||||||
|
|
||||||
create table t1 (a int, b decimal(13, 3));
|
create table t1 (a int, b decimal(13, 3));
|
||||||
insert into t1 values (1, 0.123);
|
insert into t1 values (1, 0.123);
|
||||||
let $outfile = $MYSQLTEST_VARDIR/master-data/test/subselect.out.file.1;
|
let $outfile_abs= $MYSQLTEST_VARDIR/tmp/subselect.out.file.1;
|
||||||
|
let $outfile_rel= ../../tmp/subselect.out.file.1;
|
||||||
--error 0,1
|
--error 0,1
|
||||||
--remove_file $outfile
|
--remove_file $outfile_abs
|
||||||
select a, (select max(b) from t1) into outfile "subselect.out.file.1" from t1;
|
eval select a, (select max(b) from t1) into outfile "$outfile_rel" from t1;
|
||||||
delete from t1;
|
delete from t1;
|
||||||
load data infile "subselect.out.file.1" into table t1;
|
eval load data infile "$outfile_rel" into table t1;
|
||||||
--remove_file $outfile
|
--remove_file $outfile_abs
|
||||||
select * from t1;
|
select * from t1;
|
||||||
drop table t1;
|
drop table t1;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user