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
ae02999c
Commit
ae02999c
authored
Aug 19, 2024
by
Oleksandr Byelkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-34776 Assertion failure in Item_string::do_build_clone
Added missed methods to Item_string child.
parent
fccfdc28
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
0 deletions
+27
-0
mysql-test/main/item_types.result
mysql-test/main/item_types.result
+7
-0
mysql-test/main/item_types.test
mysql-test/main/item_types.test
+8
-0
sql/item.h
sql/item.h
+12
-0
No files found.
mysql-test/main/item_types.result
View file @
ae02999c
...
...
@@ -35,5 +35,12 @@ SELECT * FROM t WHERE a=b'';
a
drop view t;
#
# MDEV-34776: Assertion failure in Item_string::do_build_clone
#
CREATE VIEW v AS SELECT version() AS f;
SELECT * FROM v WHERE f = '10.5.20';
f
drop view v;
#
# End of 10.5 tests
#
mysql-test/main/item_types.test
View file @
ae02999c
...
...
@@ -38,6 +38,14 @@ CREATE VIEW t AS SELECT 1 AS a;
SELECT
*
FROM
t
WHERE
a
=
b
''
;
drop
view
t
;
--
echo
#
--
echo
# MDEV-34776: Assertion failure in Item_string::do_build_clone
--
echo
#
CREATE
VIEW
v
AS
SELECT
version
()
AS
f
;
SELECT
*
FROM
v
WHERE
f
=
'10.5.20'
;
drop
view
v
;
--
echo
#
--
echo
# End of 10.5 tests
--
echo
#
sql/item.h
View file @
ae02999c
...
...
@@ -4719,6 +4719,9 @@ class Item_string_sys :public Item_string
Item_string_sys
(
THD
*
thd
,
const
char
*
str
)
:
Item_string
(
thd
,
str
,
(
uint
)
strlen
(
str
),
system_charset_info
)
{
}
Item
*
do_get_copy
(
THD
*
thd
)
const
override
{
return
get_item_copy
<
Item_string_sys
>
(
thd
,
this
);
}
Item
*
do_build_clone
(
THD
*
thd
)
const
override
{
return
get_copy
(
thd
);
}
};
...
...
@@ -4733,6 +4736,9 @@ class Item_string_ascii :public Item_string
Item_string
(
thd
,
str
,
(
uint
)
strlen
(
str
),
&
my_charset_latin1
,
DERIVATION_COERCIBLE
,
MY_REPERTOIRE_ASCII
)
{
}
Item
*
do_get_copy
(
THD
*
thd
)
const
override
{
return
get_item_copy
<
Item_string_ascii
>
(
thd
,
this
);
}
Item
*
do_build_clone
(
THD
*
thd
)
const
override
{
return
get_copy
(
thd
);
}
};
...
...
@@ -4769,6 +4775,9 @@ class Item_static_string_func :public Item_string
// require fix_fields() to be re-run for every statement.
return
mark_unsupported_function
(
func_name
.
str
,
arg
,
VCOL_TIME_FUNC
);
}
Item
*
do_get_copy
(
THD
*
thd
)
const
override
{
return
get_item_copy
<
Item_static_string_func
>
(
thd
,
this
);
}
Item
*
do_build_clone
(
THD
*
thd
)
const
override
{
return
get_copy
(
thd
);
}
};
...
...
@@ -4786,6 +4795,9 @@ class Item_partition_func_safe_string: public Item_string
{
return
mark_unsupported_function
(
"safe_string"
,
arg
,
VCOL_IMPOSSIBLE
);
}
Item
*
do_get_copy
(
THD
*
thd
)
const
override
{
return
get_item_copy
<
Item_partition_func_safe_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