Merge lp:~nbrinza/zorba/bugs into lp:zorba

Proposed by Nicolae Brinza
Status: Superseded
Proposed branch: lp:~nbrinza/zorba/bugs
Merge into: lp:zorba
Diff against target: 66 lines (+20/-5)
2 files modified
ChangeLog (+2/-1)
src/types/typeimpl.cpp (+18/-4)
To merge this branch: bzr merge lp:~nbrinza/zorba/bugs
Reviewer Review Type Date Requested Status
Matthias Brantner Needs Fixing
Review via email: mp+81095@code.launchpad.net

This proposal has been superseded by a proposal from 2011-11-06.

Commit message

Fix for lp: bug #867256 - test Steps-leading-lone-slash-8a is failing

Description of the change

Fix for lp: bug #867256 - test Steps-leading-lone-slash-8a is failing

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

Nicolae, could you please also update the ChangeLog?

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

The attempt to merge lp:~nbrinza/zorba/bugs into lp:zorba failed. Below is the output from the failed tests.

CMake Error at /home/ceej/zo/testing/zorbatest/tester/TarmacLander.cmake:272 (message):
  Validation queue job bugs-2011-11-03T02-45-02.853Z is finished. The final
  status was:

  1 tests did not succeed - changes not commited.

Error in read script: /home/ceej/zo/testing/zorbatest/tester/TarmacLander.cmake

lp:~nbrinza/zorba/bugs updated
10536. By Nicolae Brinza

Updated Changelog to reflect the fix for the bug #867256

10537. By Nicolae Brinza

Fixed a regression for the document-node(schema-element(X)) element test

10538. By Nicolae Brinza

Merged changes from Zorba trunk

10539. By Nicolae Brinza

Related to the Steps-leading-lone-slash-8a test: removed an unecessary condition from typeimpl.cpp. Removed the expected failure for the said test.

10540. By Nicolae Brinza

Merged with Zorba trunk

10541. By Nicolae Brinza

Added tests for the document-node(schema-element()) node test, used as variable types and in 'instance of' expressions

10542. By Nicolae Brinza

Added test results files for the previous commit (tests for document-node(schema-element()) node test)

10543. By Nicolae Brinza

Added spec files for tests with the document-node(schema-element()) node tests

10544. By Nicolae Brinza

Merged with Zorba trunk

10545. By Nicolae Brinza

Merged with Zorba trunk

10546. By Nicolae Brinza

Merged with Zorba trunk

10547. By Nicolae Brinza

Merged with Zorba trunk

10548. By Nicolae Brinza

Merged with Zorba trunk

10549. By Nicolae Brinza

Fixed the 6 failing doc-node-schema-elem-test- tests

10550. By Nicolae Brinza

Merged with Zorba trunk

Unmerged revisions

10550. By Nicolae Brinza

Merged with Zorba trunk

10549. By Nicolae Brinza

Fixed the 6 failing doc-node-schema-elem-test- tests

10548. By Nicolae Brinza

Merged with Zorba trunk

10547. By Nicolae Brinza

Merged with Zorba trunk

10546. By Nicolae Brinza

Merged with Zorba trunk

10545. By Nicolae Brinza

Merged with Zorba trunk

10544. By Nicolae Brinza

Merged with Zorba trunk

10543. By Nicolae Brinza

Added spec files for tests with the document-node(schema-element()) node tests

10542. By Nicolae Brinza

Added test results files for the previous commit (tests for document-node(schema-element()) node test)

10541. By Nicolae Brinza

Added tests for the document-node(schema-element()) node test, used as variable types and in 'instance of' expressions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'ChangeLog'
--- ChangeLog 2011-11-04 11:40:20 +0000
+++ ChangeLog 2011-11-06 18:45:28 +0000
@@ -1,7 +1,8 @@
1Zorba - The XQuery Processor1Zorba - The XQuery Processor
22
3version 2.x3version 2.x
44
5 * Fixed bug #867256 (document-node(element(x)) types and tests were not working correctly)
5 * Custom Full-text thesaurus.6 * Custom Full-text thesaurus.
6 * Fixed bug #3401971 (node-by-reference on dynamic collections)7 * Fixed bug #3401971 (node-by-reference on dynamic collections)
7 * Optimization for positioned sequence access (e.g. $x[$x[1]] where $x is a8 * Optimization for positioned sequence access (e.g. $x[$x[1]] where $x is a
89
=== modified file 'src/types/typeimpl.cpp' (properties changed: -x to +x)
--- src/types/typeimpl.cpp 2011-07-01 05:22:12 +0000
+++ src/types/typeimpl.cpp 2011-11-06 18:45:28 +0000
@@ -361,7 +361,7 @@
361361
362362
363bool NodeXQType::is_subtype(363bool NodeXQType::is_subtype(
364 const TypeManager* tm, 364 const TypeManager* tm,
365 const NodeXQType& supertype,365 const NodeXQType& supertype,
366 const QueryLoc& loc) const366 const QueryLoc& loc) const
367{367{
@@ -443,7 +443,7 @@
443443
444444
445bool NodeXQType::is_supertype(445bool NodeXQType::is_supertype(
446 const TypeManager* tm, 446 const TypeManager* tm,
447 const store::Item* subitem,447 const store::Item* subitem,
448 const QueryLoc& loc) const448 const QueryLoc& loc) const
449{449{
@@ -488,14 +488,28 @@
488 }488 }
489 }489 }
490490
491 if (m_node_kind != store::StoreConsts::elementNode && 491 if (m_node_kind != store::StoreConsts::elementNode &&
492 m_node_kind != store::StoreConsts::attributeNode)492 m_node_kind != store::StoreConsts::attributeNode &&
493 (m_content_type == NULL
494 ||
495 m_node_kind != store::StoreConsts::documentNode))
493 return true;496 return true;
494497
495 if (m_content_type == NULL ||498 if (m_content_type == NULL ||
496 m_content_type->type_kind() == XQType::ANY_TYPE_KIND)499 m_content_type->type_kind() == XQType::ANY_TYPE_KIND)
497 return true;500 return true;
498501
502 // document-node( E ) matches any document node that contains exactly one element
503 // node, optionally accompanied by one or more comment and processing instruction
504 // nodes, if E is an ElementTest or SchemaElementTest that matches the element node.
505 if (m_node_kind == store::StoreConsts::documentNode &&
506 m_content_type != NULL &&
507 m_content_type->type_kind() == XQType::NODE_TYPE_KIND)
508 {
509 xqtref_t documentNodeType = tm->create_value_type(subitem, loc);
510 return TypeOps::is_subtype(tm, *documentNodeType, *this);
511 }
512
499 xqtref_t subContentType = tm->create_named_type(subitem->getType(),513 xqtref_t subContentType = tm->create_named_type(subitem->getType(),
500 TypeConstants::QUANT_ONE,514 TypeConstants::QUANT_ONE,
501 loc,515 loc,

Subscribers

People subscribed via source and target branches