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
0b7d19d5
Commit
0b7d19d5
authored
Aug 20, 2024
by
Oleksandr Byelkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-34785: Assertion failure in Item_func_or_sum::do_build_clone (Item_func_not_all)
Missed method added.
parent
b68c1000
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
0 deletions
+20
-0
mysql-test/main/item_types.result
mysql-test/main/item_types.result
+9
-0
mysql-test/main/item_types.test
mysql-test/main/item_types.test
+9
-0
sql/item_cmpfunc.h
sql/item_cmpfunc.h
+2
-0
No files found.
mysql-test/main/item_types.result
View file @
0b7d19d5
...
@@ -42,5 +42,14 @@ SELECT * FROM v WHERE f = '10.5.20';
...
@@ -42,5 +42,14 @@ SELECT * FROM v WHERE f = '10.5.20';
f
f
drop view v;
drop view v;
#
#
# MDEV-34785: Assertion failure in Item_func_or_sum::do_build_clone
# (Item_func_not_all)
#
CREATE VIEW t AS SELECT 0 AS a;
SELECT * FROM t WHERE a=ALL (SELECT 0);
a
0
DROP VIEW t;
#
# End of 10.5 tests
# End of 10.5 tests
#
#
mysql-test/main/item_types.test
View file @
0b7d19d5
...
@@ -46,6 +46,15 @@ CREATE VIEW v AS SELECT version() AS f;
...
@@ -46,6 +46,15 @@ CREATE VIEW v AS SELECT version() AS f;
SELECT
*
FROM
v
WHERE
f
=
'10.5.20'
;
SELECT
*
FROM
v
WHERE
f
=
'10.5.20'
;
drop
view
v
;
drop
view
v
;
--
echo
#
--
echo
# MDEV-34785: Assertion failure in Item_func_or_sum::do_build_clone
--
echo
# (Item_func_not_all)
--
echo
#
CREATE
VIEW
t
AS
SELECT
0
AS
a
;
SELECT
*
FROM
t
WHERE
a
=
ALL
(
SELECT
0
);
DROP
VIEW
t
;
--
echo
#
--
echo
#
--
echo
# End of 10.5 tests
--
echo
# End of 10.5 tests
--
echo
#
--
echo
#
sql/item_cmpfunc.h
View file @
0b7d19d5
...
@@ -711,6 +711,8 @@ class Item_func_not_all :public Item_func_not
...
@@ -711,6 +711,8 @@ class Item_func_not_all :public Item_func_not
void
set_sub_test
(
Item_maxmin_subselect
*
item
)
{
test_sub_item
=
item
;
test_sum_item
=
0
;};
void
set_sub_test
(
Item_maxmin_subselect
*
item
)
{
test_sub_item
=
item
;
test_sum_item
=
0
;};
bool
empty_underlying_subquery
();
bool
empty_underlying_subquery
();
Item
*
neg_transformer
(
THD
*
thd
)
override
;
Item
*
neg_transformer
(
THD
*
thd
)
override
;
Item
*
do_get_copy
(
THD
*
thd
)
const
override
{
return
get_item_copy
<
Item_func_not_all
>
(
thd
,
this
);
}
};
};
...
...
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