mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
Bug#27898 UPDATEXML Crashes the Server!
Problem: when replacing the root element, UpdateXML erroneously tried to mix old XML content with the replacement string, which led to crash. Fix: don't use the old XML content in these cases, just return the replacement string.
This commit is contained in:
@@ -231,6 +231,13 @@ select UpdateXML(@xml, '/a/b/@bb1', 'bb3="bb3"');
|
||||
select UpdateXML(@xml, '/a/b/@bb2', '');
|
||||
select UpdateXML(@xml, '/a/b/@bb2', 'bb3="bb3"');
|
||||
|
||||
#
|
||||
# Bug#27898 UPDATEXML Crashes the Server!
|
||||
#
|
||||
select updatexml('<div><div><span>1</span><span>2</span></div></div>',
|
||||
'/','<tr><td>1</td><td>2</td></tr>') as upd1;
|
||||
select updatexml('', '/', '') as upd2;
|
||||
|
||||
#
|
||||
# Bug#16234 XML: Crash if ExtractValue()
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user