zorba-coders team mailing list archive
-
zorba-coders team
-
Mailing list archive
-
Message #02154
[Merge] lp:~danielturcanu/zorba/mytrunk into lp:zorba
Daniel Turcanu has proposed merging lp:~danielturcanu/zorba/mytrunk into lp:zorba.
Requested reviews:
Chris Hillery (ceejatec)
Matthias Brantner (matthias-brantner)
For more details, see:
https://code.launchpad.net/~danielturcanu/zorba/mytrunk/+merge/83210
fn:analyze-string fix
Also removed useless test
--
https://code.launchpad.net/~danielturcanu/zorba/mytrunk/+merge/83210
Your team Zorba Coders is subscribed to branch lp:zorba.
=== modified file 'ChangeLog'
--- ChangeLog 2011-11-23 16:27:08 +0000
+++ ChangeLog 2011-11-23 18:14:25 +0000
@@ -59,6 +59,15 @@
* Fixed bug #867262 (allow reuse of iterator over ExtFuncArgItemSequence)
* Fixed bug #869024 (segmentation fault with node-reference)
* Fixed bug #869025 (segmentation fault with node-reference)
+ * New node-reference module. References can be obtained for any node, and
+ different nodes cannot have the same identifier.
+ * Fixed bug #872697 (segmentation fault with validation of NMTOKENS)
+ * Added undo for node revalidation
+ * Optimization for count(collection()) expressions
+ * Fixed bug #872796 (validate-in-place can interfere with other update primitives)
+ * Fixed bug #872799 (validate-in-place can set incorrect types)
+ * Fixed bug #855715 (Invalid escaped characters in regex not caught)
+ * Fixed bug #868325 (fn:analyze-string fails with some recursive subgroups)
* Fixed bug #872697 (segmentation fault with validation of NMTOKENS)
* General index cannot be declared as unique if the type of its key is
xs:anyAtomicType or xs:untypedAtomic.
=== modified file 'src/diagnostics/dict_XX_cpp.xq'
--- src/diagnostics/dict_XX_cpp.xq 2011-08-05 02:21:55 +0000
+++ src/diagnostics/dict_XX_cpp.xq 2011-11-23 18:14:25 +0000
@@ -64,6 +64,7 @@
return string-join(
( util:copyright(),
'#include "stdafx.h"',
+ '#include "zorba/config.h"',
'#include "diagnostics/dict_impl.h"',
'',
'namespace zorba {',
=== modified file 'src/diagnostics/pregenerated/dict_en.cpp'
--- src/diagnostics/pregenerated/dict_en.cpp 2011-11-15 08:23:20 +0000
+++ src/diagnostics/pregenerated/dict_en.cpp 2011-11-23 18:14:25 +0000
@@ -20,6 +20,7 @@
*/
#include "stdafx.h"
+#include "zorba/config.h"
#include "diagnostics/dict_impl.h"
namespace zorba {
=== modified file 'src/runtime/strings/strings_impl.cpp'
--- src/runtime/strings/strings_impl.cpp 2011-11-18 17:42:47 +0000
+++ src/runtime/strings/strings_impl.cpp 2011-11-23 18:14:25 +0000
@@ -1830,7 +1830,7 @@
GENV_ITEMFACTORY->createString(strid_item, zstrid);
store::Item_t id_attrib_item;
GENV_ITEMFACTORY->createAttributeNode(id_attrib_item, group_elem.getp(), nr_attrib_name, untyped_type_name, strid_item);
- if(match_startg < 0)
+ if((match_startg < 0) || (match_startg < match_endgood))
continue;
match_endgood = match_endg;
if((i+1)<nr_pattern_groups)
=== modified file 'src/zorbatypes/URI.cpp'
--- src/zorbatypes/URI.cpp 2011-06-24 23:00:33 +0000
+++ src/zorbatypes/URI.cpp 2011-11-23 18:14:25 +0000
@@ -1191,8 +1191,6 @@
return is_set(Scheme) && !theScheme.empty();
}
-
-
/*******************************************************************************
********************************************************************************/
@@ -1347,7 +1345,6 @@
path = base_path.substr(0, last_slash+1);
// else
// path = "/";
-
}
// 6b - append the relative URI path
=== added directory 'test/rbkt/ExpQueryResults/zorba/string/Regex'
=== added file 'test/rbkt/ExpQueryResults/zorba/string/Regex/regex_a4.xml.res'
--- test/rbkt/ExpQueryResults/zorba/string/Regex/regex_a4.xml.res 1970-01-01 00:00:00 +0000
+++ test/rbkt/ExpQueryResults/zorba/string/Regex/regex_a4.xml.res 2011-11-23 18:14:25 +0000
@@ -0,0 +1,1 @@
+<fn:analyze-string-result xmlns:fn="http://www.w3.org/2005/xpath-functions"><fn:match>a<fn:group nr="1"><fn:group nr="2"/><fn:group nr="3">c</fn:group></fn:group></fn:match></fn:analyze-string-result>
\ No newline at end of file
=== added directory 'test/rbkt/Queries/zorba/string/Regex'
=== added file 'test/rbkt/Queries/zorba/string/Regex/regex_a4.xq'
--- test/rbkt/Queries/zorba/string/Regex/regex_a4.xq 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/string/Regex/regex_a4.xq 2011-11-23 18:14:25 +0000
@@ -0,0 +1,1 @@
+fn:analyze-string("ac", "((a)|(c))+")
\ No newline at end of file
Follow ups