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
79b5063d
Commit
79b5063d
authored
Sep 04, 2009
by
Sergey Glukhov
Browse files
Options
Browse Files
Download
Plain Diff
5.0-bugteam->5.1-bugteam merge
parents
7bfdc5bb
643fbe42
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
1 deletion
+20
-1
mysql-test/r/explain.result
mysql-test/r/explain.result
+8
-0
mysql-test/t/explain.test
mysql-test/t/explain.test
+11
-0
sql/sql_select.cc
sql/sql_select.cc
+1
-1
No files found.
mysql-test/r/explain.result
View file @
79b5063d
...
...
@@ -159,6 +159,14 @@ CREATE TABLE t1 (a INT PRIMARY KEY);
EXPLAIN EXTENDED SELECT COUNT(a) FROM t1 USE KEY(a);
ERROR 42000: Key 'a' doesn't exist in table 't1'
DROP TABLE t1;
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 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;
#
# Bug#37870: Usage of uninitialized value caused failed assertion.
#
...
...
mysql-test/t/explain.test
View file @
79b5063d
...
...
@@ -135,6 +135,17 @@ EXPLAIN EXTENDED SELECT COUNT(a) FROM t1 USE KEY(a);
DROP
TABLE
t1
;
#
# Bug#45989 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
));
--
error
ER_BAD_FIELD_ERROR
EXPLAIN
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
;
# End of 5.0 tests.
...
...
sql/sql_select.cc
View file @
79b5063d
...
...
@@ -2252,7 +2252,7 @@ JOIN::destroy()
tab
->
cleanup
();
}
tmp_join
->
tmp_join
=
0
;
tmp_table_param
.
c
opy_field
=
0
;
tmp_table_param
.
c
leanup
()
;
DBUG_RETURN
(
tmp_join
->
destroy
());
}
cond_equal
=
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