Details
-
Bug
-
Status: Open (View Workflow)
-
Critical
-
Resolution: Unresolved
-
N/A
-
None
Description
SP variable references are rewritten to NAME_CONST() in the statement binlog. XMLTYPE method items aren't, so the replica gets the original text and has no variable x.
--source include/have_binlog_format_statement.inc
|
--source include/master-slave.inc
|
CREATE TABLE t2 (a TEXT); |
--delimiter $$
|
CREATE PROCEDURE p1() |
BEGIN
|
DECLARE x XMLTYPE DEFAULT '<root>9</root>'; |
INSERT INTO t2 VALUES (x.getRootElement()); |
END$$ |
--delimiter ;
|
CALL p1();
|
--connection slave
|
--let $slave_sql_errno= 1305
|
--source include/wait_for_slave_sql_error.inc
|
--let $status_items= Last_SQL_Error
|
--source include/show_slave_status.inc
|
Last_SQL_Error = 'Error 'FUNCTION x.getRootElement does not exist' on query. Default database: 'test'. Query: 'INSERT INTO t2 VALUES (x.getRootElement())''
|
Attachments
Issue Links
- relates to
-
MDEV-36261 XMLTYPE: methods - step 1
-
- In Testing
-