Below is the list of changes that have just been committed into a local
5.1 repository of bar. When bar does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html
ChangeSet
1.2318 06/04/11 17:12:29 bar@stripped +2 -0
Merge mysql.com:/usr/home/bar/mysql-5.1-new
into mysql.com:/usr/home/bar/mysql-5.1-new.b18285
mysql-test/t/xml.test
1.12 06/04/11 17:12:19 bar@stripped +0 -0
Auto merged
mysql-test/r/xml.result
1.12 06/04/11 17:12:19 bar@stripped +0 -0
Auto merged
# This is a BitKeeper patch. What follows are the unified diffs for the
# set of deltas contained in the patch. The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User: bar
# Host: bar.intranet.mysql.r18.ru
# Root: /usr/home/bar/mysql-5.1-new.b18285/RESYNC
--- 1.11/mysql-test/r/xml.result 2006-04-07 11:04:23 +05:00
+++ 1.12/mysql-test/r/xml.result 2006-04-11 17:12:19 +05:00
@@ -618,3 +618,26 @@ select extractValue('<e>1</e>','last()')
ERROR HY000: XPATH syntax error: ''
select extractValue('<e><a>1</a></e>','/e/');
ERROR HY000: XPATH syntax error: ''
+set names utf8;
+select
extractValue('<Ñ><r>r</r></Ñ>','/Ñ/r');
+extractValue('<Ñ><r>r</r></Ñ>','/Ñ/r')
+r
+select
extractValue('<r><Ñ>Ñ</Ñ></r>','/r/Ñ');
+extractValue('<r><Ñ>Ñ</Ñ></r>','/r/Ñ')
+Ñ
+select extractValue('<Ñ r="r"/>','/Ñ/@r');
+extractValue('<Ñ r="r"/>','/Ñ/@r')
+r
+select extractValue('<r Ñ="Ñ"/>','/r/@Ñ');
+extractValue('<r Ñ="Ñ"/>','/r/@Ñ')
+Ñ
+DROP PROCEDURE IF EXISTS p2;
+CREATE PROCEDURE p2 ()
+BEGIN
+DECLARE p LONGTEXT CHARACTER SET UTF8 DEFAULT
'<Ñ><r>A</r></Ñ>';
+SELECT EXTRACTVALUE(p,'/Ñ/r');
+END//
+CALL p2();
+EXTRACTVALUE(p,'/Ñ/r')
+A
+DROP PROCEDURE p2;
--- 1.11/mysql-test/t/xml.test 2006-04-07 11:04:23 +05:00
+++ 1.12/mysql-test/t/xml.test 2006-04-11 17:12:19 +05:00
@@ -301,3 +301,23 @@ select extractValue('<e>1</e>','last()')
--error 1105
select extractValue('<e><a>1</a></e>','/e/');
+#
+# Bug#16233: XML: ExtractValue() fails with special characters
+#
+set names utf8;
+select
extractValue('<Ñ><r>r</r></Ñ>','/Ñ/r');
+select
extractValue('<r><Ñ>Ñ</Ñ></r>','/r/Ñ');
+select extractValue('<Ñ r="r"/>','/Ñ/@r');
+select extractValue('<r Ñ="Ñ"/>','/r/@Ñ');
+--disable_warnings
+DROP PROCEDURE IF EXISTS p2;
+--enable_warnings
+DELIMITER //;
+CREATE PROCEDURE p2 ()
+BEGIN
+ DECLARE p LONGTEXT CHARACTER SET UTF8 DEFAULT
'<Ñ><r>A</r></Ñ>';
+ SELECT EXTRACTVALUE(p,'/Ñ/r');
+END//
+DELIMITER ;//
+CALL p2();
+DROP PROCEDURE p2;
| Thread |
|---|
| • bk commit into 5.1 tree (bar:1.2318) | bar | 11 Apr |