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
bbbad7fe
Commit
bbbad7fe
authored
Nov 10, 2009
by
Georgi Kodinov
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
cf2a6740
4519d5e4
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
5 deletions
+32
-5
mysql-test/r/select.result
mysql-test/r/select.result
+14
-0
mysql-test/t/select.test
mysql-test/t/select.test
+13
-0
sql/sql_select.cc
sql/sql_select.cc
+5
-5
No files found.
mysql-test/r/select.result
View file @
bbbad7fe
...
...
@@ -4427,6 +4427,20 @@ ROW(a,a) <=> ROW((SELECT 1 FROM t1 WHERE 1=2),(SELECT 1 FROM t1))
INTO @var0;
ERROR 21000: Subquery returns more than 1 row
DROP TABLE t1;
#
# Bug #48458: simple query tries to allocate enormous amount of
# memory
#
CREATE TABLE t1(a INT NOT NULL, b YEAR);
INSERT INTO t1 VALUES ();
Warnings:
Warning 1364 Field 'a' doesn't have a default value
CREATE TABLE t2(c INT);
# Should not err out because of out-of-memory
SELECT 1 FROM t2 JOIN t1 ON 1=1
WHERE a != '1' AND NOT a >= b OR NOT ROW(b,a )<> ROW(a,a);
1
DROP TABLE t1,t2;
End of 5.0 tests
create table t1(a INT, KEY (a));
INSERT INTO t1 VALUES (1),(2),(3),(4),(5);
...
...
mysql-test/t/select.test
View file @
bbbad7fe
...
...
@@ -3772,6 +3772,19 @@ INTO @var0;
DROP
TABLE
t1
;
--
echo
#
--
echo
# Bug #48458: simple query tries to allocate enormous amount of
--
echo
# memory
--
echo
#
CREATE
TABLE
t1
(
a
INT
NOT
NULL
,
b
YEAR
);
INSERT
INTO
t1
VALUES
();
CREATE
TABLE
t2
(
c
INT
);
--
echo
# Should not err out because of out-of-memory
SELECT
1
FROM
t2
JOIN
t1
ON
1
=
1
WHERE
a
!=
'1'
AND
NOT
a
>=
b
OR
NOT
ROW
(
b
,
a
)
<>
ROW
(
a
,
a
);
DROP
TABLE
t1
,
t2
;
--
echo
End
of
5.0
tests
...
...
sql/sql_select.cc
View file @
bbbad7fe
...
...
@@ -7834,13 +7834,13 @@ static COND *build_equal_items_for_cond(THD *thd, COND *cond,
{
item_equal
->
fix_length_and_dec
();
item_equal
->
update_used_tables
();
}
else
item_equal
=
(
Item_equal
*
)
eq_list
.
pop
();
set_if_bigger
(
thd
->
lex
->
current_select
->
max_equal_elems
,
item_equal
->
members
());
return
item_equal
;
}
return
eq_list
.
pop
();
}
else
{
/*
...
...
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