Merge lp:~danielturcanu/zorba/mytrunk into lp:zorba

Proposed by Daniel Turcanu
Status: Superseded
Proposed branch: lp:~danielturcanu/zorba/mytrunk
Merge into: lp:zorba
Diff against target: 89 lines (+9/-4) (has conflicts)
7 files modified
ChangeLog (+4/-0)
src/diagnostics/dict_XX_cpp.xq (+1/-0)
src/diagnostics/pregenerated/dict_en.cpp (+1/-0)
src/runtime/strings/strings_impl.cpp (+1/-1)
src/zorbatypes/URI.cpp (+0/-3)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_a4.xml.res (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_a4.xq (+1/-0)
Text conflict in ChangeLog
To merge this branch: bzr merge lp:~danielturcanu/zorba/mytrunk
Reviewer Review Type Date Requested Status
Chris Hillery Needs Fixing
Matthias Brantner Needs Information
Review via email: mp+78996@code.launchpad.net

This proposal has been superseded by a proposal from 2011-10-12.

Commit message

fn:analyze-string fix

Description of the change

fn:analyze-string fix

To post a comment you must log in.
Revision history for this message
Matthias Brantner (matthias-brantner) wrote :

What is the file test/rbkt/Queries/zorba/resolving/path_to_uri.xq supposed to test. It imports the file module but doesn't use it.

review: Needs Information
Revision history for this message
Daniel Turcanu (danielturcanu) wrote :
Revision history for this message
Chris Hillery (ceejatec) wrote :

IMHO, path_to_uri.xq / .spec / .xml.res shouldn't be checked in with this change, since it's not related to the bug being fixed. path_to_uri.spec isn't relevant and shouldn't be checked in at all, since the variable $input-context it declares isn't used by path_to_uri.xq.

Also, why are there additional #include <zorba/config.h> lines added? That will probably slow builds down (more header dependencies), so if it's not critically important it'd be best to leave it out.

Finally, the good news: I confirmed that the change to strings_impl.cpp does fix the query regex_a4.xq. (Although, if I can continue being picky, I'd prefer to leave regex_a4.xq in the test/rbkt/Queries/zorba/string/AnalyzeString directory, rather than adding the new Regex subdirectory there.)

review: Needs Fixing
lp:~danielturcanu/zorba/mytrunk updated
10478. By Daniel Turcanu

Update to trunk

10479. By Daniel Turcanu

Deleted blank uri test

10480. By Daniel Turcanu

Update to trunk

10481. By Daniel Turcanu

Update to trunk

10482. By Daniel Turcanu

Update to trunk

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'ChangeLog'
2--- ChangeLog 2011-10-12 09:20:36 +0000
3+++ ChangeLog 2011-10-12 12:51:34 +0000
4@@ -48,7 +48,11 @@
5 * Fixed bug #869025 (segmentation fault with node-reference)
6 * New node-reference module. References can be obtained for any node, and
7 different nodes cannot have the same identifier.
8+<<<<<<< TREE
9 * Fixed bug #872697 (segmentation fault with validation of NMTOKENS)
10+=======
11+ * Fixed bug #868325 (fn:analyze-string fails with some recursive subgroups)
12+>>>>>>> MERGE-SOURCE
13
14 version 2.0.1
15
16
17=== modified file 'src/diagnostics/dict_XX_cpp.xq'
18--- src/diagnostics/dict_XX_cpp.xq 2011-08-05 02:21:55 +0000
19+++ src/diagnostics/dict_XX_cpp.xq 2011-10-12 12:51:34 +0000
20@@ -64,6 +64,7 @@
21 return string-join(
22 ( util:copyright(),
23 '#include "stdafx.h"',
24+ '#include "zorba/config.h"',
25 '#include "diagnostics/dict_impl.h"',
26 '',
27 'namespace zorba {',
28
29=== modified file 'src/diagnostics/pregenerated/dict_en.cpp'
30--- src/diagnostics/pregenerated/dict_en.cpp 2011-10-05 17:49:48 +0000
31+++ src/diagnostics/pregenerated/dict_en.cpp 2011-10-12 12:51:34 +0000
32@@ -20,6 +20,7 @@
33 */
34
35 #include "stdafx.h"
36+#include "zorba/config.h"
37 #include "diagnostics/dict_impl.h"
38
39 namespace zorba {
40
41=== modified file 'src/runtime/strings/strings_impl.cpp'
42--- src/runtime/strings/strings_impl.cpp 2011-08-10 18:58:11 +0000
43+++ src/runtime/strings/strings_impl.cpp 2011-10-12 12:51:34 +0000
44@@ -1688,7 +1688,7 @@
45 GENV_ITEMFACTORY->createString(strid_item, zstrid);
46 store::Item_t id_attrib_item;
47 GENV_ITEMFACTORY->createAttributeNode(id_attrib_item, group_elem.getp(), nr_attrib_name, untyped_type_name, strid_item);
48- if(match_startg < 0)
49+ if((match_startg < 0) || (match_startg < match_endgood))
50 continue;
51 match_endgood = match_endg;
52 if((i+1)<nr_pattern_groups)
53
54=== modified file 'src/zorbatypes/URI.cpp'
55--- src/zorbatypes/URI.cpp 2011-06-24 23:00:33 +0000
56+++ src/zorbatypes/URI.cpp 2011-10-12 12:51:34 +0000
57@@ -1191,8 +1191,6 @@
58 return is_set(Scheme) && !theScheme.empty();
59 }
60
61-
62-
63 /*******************************************************************************
64
65 ********************************************************************************/
66@@ -1347,7 +1345,6 @@
67 path = base_path.substr(0, last_slash+1);
68 // else
69 // path = "/";
70-
71 }
72
73 // 6b - append the relative URI path
74
75=== added directory 'test/rbkt/ExpQueryResults/zorba/string/Regex'
76=== added file 'test/rbkt/ExpQueryResults/zorba/string/Regex/regex_a4.xml.res'
77--- test/rbkt/ExpQueryResults/zorba/string/Regex/regex_a4.xml.res 1970-01-01 00:00:00 +0000
78+++ test/rbkt/ExpQueryResults/zorba/string/Regex/regex_a4.xml.res 2011-10-12 12:51:34 +0000
79@@ -0,0 +1,1 @@
80+<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>
81\ No newline at end of file
82
83=== added directory 'test/rbkt/Queries/zorba/string/Regex'
84=== added file 'test/rbkt/Queries/zorba/string/Regex/regex_a4.xq'
85--- test/rbkt/Queries/zorba/string/Regex/regex_a4.xq 1970-01-01 00:00:00 +0000
86+++ test/rbkt/Queries/zorba/string/Regex/regex_a4.xq 2011-10-12 12:51:34 +0000
87@@ -0,0 +1,1 @@
88+fn:analyze-string("ac", "((a)|(c))+")
89\ No newline at end of file

Subscribers

People subscribed via source and target branches