Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
7611288e
Commit
7611288e
authored
Jul 07, 2008
by
Sven Sandberg
Browse files
Options
Browse Files
Download
Plain Diff
merged fixes for bug#37858
parents
44438803
1fc4954d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
mysql-test/r/subselect.result
mysql-test/r/subselect.result
+2
-2
mysql-test/t/subselect.test
mysql-test/t/subselect.test
+6
-5
No files found.
mysql-test/r/subselect.result
View file @
7611288e
...
...
@@ -1658,9 +1658,9 @@ SELECT DISTINCT (SELECT a) FROM t1 LIMIT 100;
DROP TABLE t1;
create table t1 (a int, b decimal(13, 3));
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;
load data infile "subselect.out.file.1" into table t1;
load data infile "
../../tmp/
subselect.out.file.1" into table t1;
select * from t1;
a b
1 0.123
...
...
mysql-test/t/subselect.test
View file @
7611288e
...
...
@@ -1041,13 +1041,14 @@ DROP TABLE t1;
create
table
t1
(
a
int
,
b
decimal
(
13
,
3
));
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
--
remove_file
$outfile
select
a
,
(
select
max
(
b
)
from
t1
)
into
outfile
"subselect.out.file.1
"
from
t1
;
--
remove_file
$outfile
_abs
eval
select
a
,
(
select
max
(
b
)
from
t1
)
into
outfile
"
$outfile_rel
"
from
t1
;
delete
from
t1
;
load
data
infile
"subselect.out.file.1
"
into
table
t1
;
--
remove_file
$outfile
eval
load
data
infile
"
$outfile_rel
"
into
table
t1
;
--
remove_file
$outfile
_abs
select
*
from
t1
;
drop
table
t1
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment