From: jon
Date: June 2 2007 2:29pm
Subject: svn commit - mysqldoc@docsrva: r6630 - trunk/refman-5.1
List-Archive: http://lists.mysql.com/commits/27985
Message-Id: <200706021429.l52ETXsP005299@docsrva.mysql.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Author: jstephens
Date: 2007-06-02 16:29:31 +0200 (Sat, 02 Jun 2007)
New Revision: 6630
Log:
Documented XML Functions bugfixes: Bug #26815, Bug #27898, Bug #28558
Variable usage with XML functions in 5.1.20
Modified:
trunk/refman-5.1/functions-core.xml
trunk/refman-5.1/news-5.1.xml
Modified: trunk/refman-5.1/functions-core.xml
===================================================================
--- trunk/refman-5.1/functions-core.xml 2007-06-02 13:19:21 UTC (rev 6629)
+++ trunk/refman-5.1/functions-core.xml 2007-06-02 14:29:31 UTC (rev 6630)
Changed blocks: 1, Lines Added: 45, Lines Deleted: 0; 2081 bytes
@@ -12741,6 +12741,51 @@
MySQL XML User
Forum.
+
+
+ Beginning with MySQL 5.1.20, user variables in the XPath
+ expressions used with these functions are supported in two forms,
+ whose notations differ according to whether they are weakly or
+ strongly checked:
+
+
+
+
+ Weak checking
+
+
+ Variables using the syntax
+ $@variable_name
+ are not checked. No warnings or errors are issued by the
+ server if a variable has the wrong type or has previously
+ been assigned a value. This also means the user is fully
+ responsible for any typographical errors, since no
+ warnings will be given if (for example)
+ $@myvairable is used where
+ $@myvariable was intended.
+
+
+
+
+
+
+ Strong checking
+
+
+ Variables using the syntax
+ $variable_name
+ can be declared and used with these functions they are
+ called inside stored procedures. Such variables are local
+ to the stored procedure in which they are defined, and are
+ strongly checked for type and value.
+
+
+
+
+
+
+ (See also Bug #26518.)
+
Modified: trunk/refman-5.1/news-5.1.xml
===================================================================
--- trunk/refman-5.1/news-5.1.xml 2007-06-02 13:19:21 UTC (rev 6629)
+++ trunk/refman-5.1/news-5.1.xml 2007-06-02 14:29:31 UTC (rev 6630)
Changed blocks: 2, Lines Added: 26, Lines Deleted: 1; 1400 bytes
@@ -73,7 +73,16 @@
-
+
+ User variables and stored procedure variables are now
+ supported for use in XPath expressions employed as arguments
+ to the ExtractValue() and
+ UpdateXML() functions. (Bug #26518)
+
+
+
+ See , for more information.
+
@@ -108,6 +117,22 @@
scheduled event caused the server to crash. (Bug #28666)
+
+
+
+ Following an invalid call to UpdateXML(),
+ calling the function again (even if valid) crashed the server.
+ (Bug #27898)
+
+
+
+
+
+ Calling the UpdateXML() function using
+ invalid XPath syntax caused memory corruption possibly leading
+ to a crash of the server. (Bug #28558)
+
+