Merge lp:~zorba-coders/zorba/bug-1002993 into lp:zorba

Proposed by Markos Zaharioudakis
Status: Merged
Approved by: Markos Zaharioudakis
Approved revision: 10870
Merged at revision: 10925
Proposed branch: lp:~zorba-coders/zorba/bug-1002993
Merge into: lp:zorba
Diff against target: 113 lines (+52/-4)
5 files modified
ChangeLog (+6/-2)
src/types/schema/revalidateUtils.cpp (+2/-2)
test/rbkt/ExpQueryResults/zorba/updates/upd14.xml.res (+2/-0)
test/rbkt/Queries/zorba/updates/forms.xsd (+23/-0)
test/rbkt/Queries/zorba/updates/upd14.xq (+19/-0)
To merge this branch: bzr merge lp:~zorba-coders/zorba/bug-1002993
Reviewer Review Type Date Requested Status
Cezar Andrei Approve
Markos Zaharioudakis Approve
Review via email: mp+108304@code.launchpad.net

Commit message

Fixed bug #1002993 (bug during revalidation after update due to improper condition for calling TypeOps::get_atomic_type_code() from SchemaValidatorImpl::isPossibleSimpleContentRevalImpl())

Description of the change

Fixed bug #1002993 (bug during revalidation after update due to improper condition for calling TypeOps::get_atomic_type_code() from SchemaValidatorImpl::isPossibleSimpleContentRevalImpl())

To post a comment you must log in.
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Validation queue job bug-1002993-2012-06-01T08-43-02.506Z is finished. The final status was:

All tests succeeded!

Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Voting does not meet specified criteria. Required: Approve > 1, Disapprove < 1, Needs Fixing < 1, Pending < 1. Got: 3 Pending.

Revision history for this message
Markos Zaharioudakis (markos-za) :
review: Approve
Revision history for this message
Cezar Andrei (cezar-andrei) wrote :

It's fine.

review: Approve
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Attempt to merge into lp:zorba failed due to conflicts:

text conflict in ChangeLog

Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Attempt to merge into lp:zorba failed due to conflicts:

text conflict in ChangeLog

lp:~zorba-coders/zorba/bug-1002993 updated
10870. By Markos Zaharioudakis

merge from trunk

Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Validation queue job bug-1002993-2012-07-11T05-02-50.735Z is finished. The final status was:

All tests succeeded!

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'ChangeLog'
2--- ChangeLog 2012-07-10 06:28:46 +0000
3+++ ChangeLog 2012-07-11 04:57:23 +0000
4@@ -10,7 +10,8 @@
5 * Added ft:tokenize-nodes() function to full-text module
6 * New XQuery 3.0 functions
7 - fn:parse-xml-fragment#1
8- * Added support for transient maps to the http://www.zorba-xquery.com/modules/store/data-structures/unordered-map module.
9+ * Added support for transient maps to the
10+ http://www.zorba-xquery.com/modules/store/data-structures/unordered-map module.
11 * Added support for fragments to fn:path
12 * Positional pagination support for collections
13
14@@ -24,6 +25,9 @@
15 * Big rewrite of plan serializer internals, resulting in big performance improvement.
16
17 Bug Fixes/Other Changes:
18+ * Fixed bug #1002993 (bug during revalidation after update; improper condition
19+ for calling TypeOps::get_atomic_type_code() from
20+ SchemaValidatorImpl::isPossibleSimpleContentRevalImpl())
21 * Fixed bug #867357 (Improved parser error messages)
22 * Fixed bug #932314 (non-comparable values must be treated as distinct by
23 fn:distinct-values)
24@@ -35,7 +39,7 @@
25 * Fixed bug #1003023$ (optimizer problems due to common subexpression after
26 var folding into if-then-else)
27 * Fixed bug #1006166 (disabling 2 functions with the same qname)
28- * Fixed bug 960083$ (improper error handling of NaN comparisons)
29+ * Fixed bug #960083 (improper error handling of NaN comparisons)
30 * Xml-format plan serialization not supported anymore.
31
32
33
34=== modified file 'src/types/schema/revalidateUtils.cpp'
35--- src/types/schema/revalidateUtils.cpp 2012-06-28 04:14:03 +0000
36+++ src/types/schema/revalidateUtils.cpp 2012-07-11 04:57:23 +0000
37@@ -580,7 +580,7 @@
38 }
39
40 bool SchemaValidatorImpl::isPossibleSimpleContentRevalidation(
41- store::Item *typeQName)
42+ store::Item* typeQName)
43 {
44 TypeManager* typeManager = theSctx->get_typemanager();
45
46@@ -604,7 +604,7 @@
47 {
48 if ( schemaType->content_kind() == XQType::SIMPLE_CONTENT_KIND )
49 {
50- if (schemaType->is_builtin())
51+ if (schemaType->type_kind() == XQType::ATOMIC_TYPE_KIND)
52 {
53 store::SchemaTypeCode schemaTypeCode =
54 TypeOps::get_atomic_type_code(*schemaType);
55
56=== added file 'test/rbkt/ExpQueryResults/zorba/updates/upd14.xml.res'
57--- test/rbkt/ExpQueryResults/zorba/updates/upd14.xml.res 1970-01-01 00:00:00 +0000
58+++ test/rbkt/ExpQueryResults/zorba/updates/upd14.xml.res 2012-07-11 04:57:23 +0000
59@@ -0,0 +1,2 @@
60+<?xml version="1.0" encoding="UTF-8"?>
61+ok
62
63=== added file 'test/rbkt/Queries/zorba/updates/forms.xsd'
64--- test/rbkt/Queries/zorba/updates/forms.xsd 1970-01-01 00:00:00 +0000
65+++ test/rbkt/Queries/zorba/updates/forms.xsd 2012-07-11 04:57:23 +0000
66@@ -0,0 +1,23 @@
67+<?xml version="1.0" encoding="utf-8"?>
68+<xs:schema targetNamespace="http://www.evaluescience.com/schemas/forms"
69+ xmlns = "http://www.evaluescience.com/schemas/forms"
70+ xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
71+
72+ <xs:complexType name="Form">
73+ <xs:sequence>
74+ <xs:any namespace="##targetNamespace" minOccurs="0"
75+ maxOccurs="unbounded">
76+ </xs:any>
77+ </xs:sequence>
78+ </xs:complexType>
79+
80+ <xs:element name="form" type="Form"></xs:element>
81+
82+ <xs:complexType name="Hidden">
83+ <xs:attribute name="name" type="xs:string" use="required"></xs:attribute>
84+ <xs:attribute name="value" type="xs:anySimpleType" use="optional" />
85+ </xs:complexType>
86+
87+ <xs:element name="hidden" type="Hidden"></xs:element>
88+
89+</xs:schema>
90
91=== added file 'test/rbkt/Queries/zorba/updates/upd14.xq'
92--- test/rbkt/Queries/zorba/updates/upd14.xq 1970-01-01 00:00:00 +0000
93+++ test/rbkt/Queries/zorba/updates/upd14.xq 2012-07-11 04:57:23 +0000
94@@ -0,0 +1,19 @@
95+import schema namespace f = "http://www.evaluescience.com/schemas/forms" at "forms.xsd";
96+
97+declare namespace an = "http://www.zorba-xquery.com/annotations";
98+
99+declare %an:no-cache %an:sequential function local:test2()
100+{
101+ variable $form := validate strict {
102+ <f:form>
103+ <f:hidden name="myid" value="3"/>
104+ </f:form>
105+ };
106+
107+ replace value of node $form/f:hidden/@value with "hello";
108+
109+ "ok"
110+};
111+
112+
113+local:test2()

Subscribers

People subscribed via source and target branches