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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
75c6124b
Commit
75c6124b
authored
Jul 07, 2008
by
Sven Sandberg
Browse files
Options
Browse Files
Download
Plain Diff
merged fixes for bug#37858
parents
a38f6fe4
af7ed3f9
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 @
75c6124b
...
@@ -1658,9 +1658,9 @@ SELECT DISTINCT (SELECT a) FROM t1 LIMIT 100;
...
@@ -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
...
...
mysql-test/t/subselect.test
View file @
75c6124b
...
@@ -1041,13 +1041,14 @@ DROP TABLE t1;
...
@@ -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
;
...
...
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