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
fccfdc28
Commit
fccfdc28
authored
Aug 19, 2024
by
Oleksandr Byelkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-34771 Types mismatch when cloning items causes debug assertion
Missing methods added to Item_bin_string
parent
db8ab4ac
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
0 deletions
+22
-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
+10
-0
sql/item.h
sql/item.h
+3
-0
No files found.
mysql-test/main/item_types.result
View file @
fccfdc28
...
...
@@ -27,4 +27,13 @@ a
DROP TABLE t1;
DROP VIEW v1, v2;
#
# MDEV-34771: Types mismatch when cloning items causes debug assertion
#
CREATE VIEW t AS SELECT 1 AS a;
SELECT * FROM t WHERE a=b'';
a
drop view t;
#
# End of 10.5 tests
#
mysql-test/main/item_types.test
View file @
fccfdc28
...
...
@@ -30,4 +30,14 @@ SELECT * FROM v2 WHERE a='' AND CASE '' WHEN '' THEN '' ELSE a END='';
DROP
TABLE
t1
;
DROP
VIEW
v1
,
v2
;
--
echo
#
--
echo
# MDEV-34771: Types mismatch when cloning items causes debug assertion
--
echo
#
CREATE
VIEW
t
AS
SELECT
1
AS
a
;
SELECT
*
FROM
t
WHERE
a
=
b
''
;
drop
view
t
;
--
echo
#
--
echo
# End of 10.5 tests
--
echo
#
sql/item.h
View file @
fccfdc28
...
...
@@ -4946,6 +4946,9 @@ class Item_bin_string: public Item_hex_hybrid
public:
Item_bin_string
(
THD
*
thd
,
const
char
*
str
,
size_t
str_length
);
void
print
(
String
*
str
,
enum_query_type
query_type
)
override
;
Item
*
do_get_copy
(
THD
*
thd
)
const
override
{
return
get_item_copy
<
Item_bin_string
>
(
thd
,
this
);
}
Item
*
do_build_clone
(
THD
*
thd
)
const
override
{
return
get_copy
(
thd
);
}
};
...
...
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