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
2fa49930
Commit
2fa49930
authored
Jan 19, 2010
by
Georgi Kodinov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
revert of the fix for bug #45989: pushed by mistake.
parent
8c6d6c0c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
31 deletions
+0
-31
mysql-test/r/subselect.result
mysql-test/r/subselect.result
+0
-12
mysql-test/t/subselect.test
mysql-test/t/subselect.test
+0
-17
sql/sql_select.cc
sql/sql_select.cc
+0
-2
No files found.
mysql-test/r/subselect.result
View file @
2fa49930
...
@@ -4602,16 +4602,4 @@ SELECT 1 FROM t1 GROUP BY
...
@@ -4602,16 +4602,4 @@ SELECT 1 FROM t1 GROUP BY
1
1
1
1
DROP TABLE t1;
DROP TABLE t1;
#
# Bug #45989 take 2 : memory leak after explain encounters an
# error in the query
#
CREATE TABLE t1(a LONGTEXT);
INSERT INTO t1 VALUES (repeat('a',@@global.max_allowed_packet));
INSERT INTO t1 VALUES (repeat('b',@@global.max_allowed_packet));
EXPLAIN EXTENDED SELECT DISTINCT 1 FROM t1,
(SELECT DISTINCTROW a AS away FROM t1 GROUP BY a WITH ROLLUP) AS d1
WHERE t1.a = d1.a;
ERROR 42S22: Unknown column 'd1.a' in 'where clause'
DROP TABLE t1;
End of 5.1 tests.
End of 5.1 tests.
mysql-test/t/subselect.test
View file @
2fa49930
...
@@ -3585,21 +3585,4 @@ SELECT 1 FROM t1 GROUP BY
...
@@ -3585,21 +3585,4 @@ SELECT 1 FROM t1 GROUP BY
(
SELECT
LAST_INSERT_ID
()
FROM
t1
ORDER
BY
MIN
(
a
)
ASC
LIMIT
1
);
(
SELECT
LAST_INSERT_ID
()
FROM
t1
ORDER
BY
MIN
(
a
)
ASC
LIMIT
1
);
DROP
TABLE
t1
;
DROP
TABLE
t1
;
--
echo
#
--
echo
# Bug #45989 take 2 : memory leak after explain encounters an
--
echo
# error in the query
--
echo
#
CREATE
TABLE
t1
(
a
LONGTEXT
);
INSERT
INTO
t1
VALUES
(
repeat
(
'a'
,
@@
global
.
max_allowed_packet
));
INSERT
INTO
t1
VALUES
(
repeat
(
'b'
,
@@
global
.
max_allowed_packet
));
--
error
ER_BAD_FIELD_ERROR
EXPLAIN
EXTENDED
SELECT
DISTINCT
1
FROM
t1
,
(
SELECT
DISTINCTROW
a
AS
away
FROM
t1
GROUP
BY
a
WITH
ROLLUP
)
AS
d1
WHERE
t1
.
a
=
d1
.
a
;
DROP
TABLE
t1
;
--
echo
End
of
5.1
tests
.
--
echo
End
of
5.1
tests
.
sql/sql_select.cc
View file @
2fa49930
...
@@ -5824,8 +5824,6 @@ JOIN::make_simple_join(JOIN *parent, TABLE *tmp_table)
...
@@ -5824,8 +5824,6 @@ JOIN::make_simple_join(JOIN *parent, TABLE *tmp_table)
const_table_map
=
0
;
const_table_map
=
0
;
tmp_table_param
.
field_count
=
tmp_table_param
.
sum_func_count
=
tmp_table_param
.
field_count
=
tmp_table_param
.
sum_func_count
=
tmp_table_param
.
func_count
=
0
;
tmp_table_param
.
func_count
=
0
;
if
(
tmp_table_param
.
copy_field
)
delete
[]
tmp_table_param
.
copy_field
;
tmp_table_param
.
copy_field
=
tmp_table_param
.
copy_field_end
=
0
;
tmp_table_param
.
copy_field
=
tmp_table_param
.
copy_field_end
=
0
;
first_record
=
sort_and_group
=
0
;
first_record
=
sort_and_group
=
0
;
send_records
=
(
ha_rows
)
0
;
send_records
=
(
ha_rows
)
0
;
...
...
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