[Zorba-coders] [Bug 907070] Re: Item API needs operator<

2012-01-18 Thread Paul J. Lucas
** Branch linked: lp:~paul-lucas/zorba/bug-907070

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/907070

Title:
  Item API needs operator<<

Status in Zorba - The XQuery Processor:
  New

Bug description:
  To emit the string value of an Item to an ostream, you currently have
  to use getStringValue() or getStringValue2(). This is inefficient
  since a string that is otherwise not needed needs to be created.

  Instead, there should be a global operator<< defined:

  std::ostream& operator<<( std::ostream&, store::Item const& );

  Its implementation could simply call a new protected, pure virtual
  member function for Item:

  virtual void emit( std::ostream& ) const = 0;

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/907070/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


Re: [Zorba-coders] [Merge] lp:~zorba-coders/zorba/bug-896426 into lp:zorba

2012-01-18 Thread Paul J. Lucas
It's not critical.  I was hoping that Chris would  have migrated more unit 
tests.
-- 
https://code.launchpad.net/~zorba-coders/zorba/bug-896426/+merge/83885
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


Re: [Zorba-coders] [Merge] lp:~zorba-coders/zorba/http-client-version into lp:zorba/http-client-module

2012-01-18 Thread Matthias Brantner
Review: Approve


-- 
https://code.launchpad.net/~zorba-coders/zorba/http-client-version/+merge/88986
Your team Zorba Coders is subscribed to branch lp:zorba/http-client-module.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


Re: [Zorba-coders] [Merge] lp:~zorba-coders/zorba/bug-896426 into lp:zorba

2012-01-18 Thread Matthias Brantner
Review: Needs Information

Should we merge these changes?
-- 
https://code.launchpad.net/~zorba-coders/zorba/bug-896426/+merge/83885
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


Re: [Zorba-coders] [Merge] lp:~zorba-coders/zorba/bug900677 into lp:zorba

2012-01-18 Thread Matthias Brantner
Review: Needs Information

> Should the actual atomic type be present in the attribute element?
What's the use case for this? The type is declared in the index which should be 
know by the user. It could be done but it's not clear how this would look like. 
Do you want the QName of the atomic type of the sequence type?

> If you have "by @id" where @id can be 1 or "1", you might want to create two
> index keys?
I don't understand this.

> If a key returns (), you might want to distinguish with empty string for
> probing later?
I have made a fix such that the value attribute is only present if the entry is 
not the empty sequence.


> By using keys(), I got the following output:
> http://www.zorba-
> xquery.com/modules/store/static/indexes/dml"> value="hello">
> 
> Is the namespace useful or does it just make the life of the user harder?
It's consistent with the keys function of the maps module. We can remove it but 
should remove it for both then (which is a backwards incompatible change).

> Why isn't it:
> 
> Again, could you explain me how I'm supposed to probe from such XDM if one of
> the actual key returned empty sequence? 
Is there a way to probe for entries where one of the keys is the empty 
sequence? I don't think there
is. We should have a separate bug for this.

> Should the keys have a position attribute or something?
The index of the attribute elements determines the position. Is an additional 
attribute really needed?

> The doc/zorba/xqddf.dox doesn't seem to mention the function, it should no?
Yes, that's done.

> > The xqdoc seems to have a formatting problem: the output example for keys()
> goes out of its box.
Fixed.
-- 
https://code.launchpad.net/~zorba-coders/zorba/bug900677/+merge/88973
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


Re: [Zorba-coders] [Merge] lp:~zorba-coders/zorba/bug905035 into lp:zorba

2012-01-18 Thread Markos Zaharioudakis
Review: Approve


-- 
https://code.launchpad.net/~zorba-coders/zorba/bug905035/+merge/89099
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 867159] Re: fn:match fails if the string is non-utf8

2012-01-18 Thread Launchpad Bug Tracker
** Branch linked: lp:~zorba-coders/zorba/feature-transcode_streambuf

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/867159

Title:
  fn:match fails if the string is non-utf8

Status in Zorba - The XQuery Processor:
  New

Bug description:
  I have a query that reads a lot of files and apply fn:match on them.
  Some files have non-utf8 characters, and file:read-text reads with no problem.
  fn:matches calls to_string to convert to ICU string, but that fails. So 
fn:matches returns false, although I think it should raise an error. Actually 
to_string should raise an error, otherwise the non-utf8 problem gets unnoticed.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/867159/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~zorba-coders/zorba/phpapi into lp:zorba

2012-01-18 Thread noreply
The proposal to merge lp:~zorba-coders/zorba/phpapi into lp:zorba has been 
updated.

Status: Approved => Merged

For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/phpapi/+merge/89002
-- 
https://code.launchpad.net/~zorba-coders/zorba/phpapi/+merge/89002
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~nbrinza/zorba/parse-fragment into lp:~zorba-coders/zorba/zorba-experimental

2012-01-18 Thread Matthias Brantner
The proposal to merge lp:~nbrinza/zorba/parse-fragment into 
lp:~zorba-coders/zorba/zorba-experimental has been updated.

Status: Needs review => Approved

For more details, see:
https://code.launchpad.net/~nbrinza/zorba/parse-fragment/+merge/89108
-- 
https://code.launchpad.net/~nbrinza/zorba/parse-fragment/+merge/89108
Your team Zorba Coders is requested to review the proposed merge of 
lp:~nbrinza/zorba/parse-fragment into lp:~zorba-coders/zorba/zorba-experimental.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~nbrinza/zorba/parse-fragment into lp:~zorba-coders/zorba/zorba-experimental

2012-01-18 Thread Zorba Build Bot
The proposal to merge lp:~nbrinza/zorba/parse-fragment into 
lp:~zorba-coders/zorba/zorba-experimental has been updated.

Status: Approved => Needs review

For more details, see:
https://code.launchpad.net/~nbrinza/zorba/parse-fragment/+merge/89108
-- 
https://code.launchpad.net/~nbrinza/zorba/parse-fragment/+merge/89108
Your team Zorba Coders is requested to review the proposed merge of 
lp:~nbrinza/zorba/parse-fragment into lp:~zorba-coders/zorba/zorba-experimental.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


Re: [Zorba-coders] [Merge] lp:~nbrinza/zorba/parse-fragment into lp:~zorba-coders/zorba/zorba-experimental

2012-01-18 Thread Zorba Build Bot
The attempt to merge lp:~nbrinza/zorba/parse-fragment into 
lp:~zorba-coders/zorba/zorba-experimental failed. Below is the output from the 
failed tests.

experimental build started for lp:~nbrinza/zorba/parse-fragment. Check out 
http://parse-fragment.zorba-xquery.com/ in half an hour or so. Logfile at 
http://zorbatest.lambda.nu:8080/remotequeue/experimental/parse-fragment.log .


-- 
https://code.launchpad.net/~nbrinza/zorba/parse-fragment/+merge/89108
Your team Zorba Coders is requested to review the proposed merge of 
lp:~nbrinza/zorba/parse-fragment into lp:~zorba-coders/zorba/zorba-experimental.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~zorba-coders/zorba/phpapi into lp:zorba

2012-01-18 Thread Zorba Build Bot
Validation queue job phpapi-2012-01-18T18-48-01.633Z is finished. The final 
status was:

All tests succeeded!
-- 
https://code.launchpad.net/~zorba-coders/zorba/phpapi/+merge/89002
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~zorba-coders/zorba/phpapi into lp:zorba

2012-01-18 Thread Zorba Build Bot
Validation queue starting for merge proposal.
Log at: 
http://zorbatest.lambda.nu:8080/remotequeue/phpapi-2012-01-18T18-48-01.633Z/log.html
-- 
https://code.launchpad.net/~zorba-coders/zorba/phpapi/+merge/89002
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~zorba-coders/zorba/phpapi into lp:zorba

2012-01-18 Thread Matthias Brantner
The proposal to merge lp:~zorba-coders/zorba/phpapi into lp:zorba has been 
updated.

Commit Message changed to:

This merge adds the PHP API that was introduced at the PHP Tour 2011.

For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/phpapi/+merge/89002
-- 
https://code.launchpad.net/~zorba-coders/zorba/phpapi/+merge/89002
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


Re: [Zorba-coders] [Merge] lp:~zorba-coders/zorba/no_unicode into lp:zorba

2012-01-18 Thread Paul J. Lucas
Try it now.
-- 
https://code.launchpad.net/~zorba-coders/zorba/no_unicode/+merge/85142
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~zorba-coders/zorba/bug905035 into lp:zorba

2012-01-18 Thread Matthias Brantner
The proposal to merge lp:~zorba-coders/zorba/bug905035 into lp:zorba has been 
updated.

Commit Message changed to:

Implemented StaticContext::getNamespaceBindings to resolve bug #905035. In the 
same commit, the function getNamespaceURIByPrefix was deprecated because it's 
superseded by the new function.

For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/bug905035/+merge/89099
-- 
https://code.launchpad.net/~zorba-coders/zorba/bug905035/+merge/89099
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


Re: [Zorba-coders] [Merge] lp:~zorba-coders/zorba/bug905035 into lp:zorba

2012-01-18 Thread Matthias Brantner
I agree with Markos's comment and have made the suggested improvements. Please 
vote again on the proposal.
-- 
https://code.launchpad.net/~zorba-coders/zorba/bug905035/+merge/89099
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~zorba-coders/zorba/bug905035 into lp:zorba

2012-01-18 Thread Matthias Brantner
Matthias Brantner has proposed merging lp:~zorba-coders/zorba/bug905035 into 
lp:zorba.

Requested reviews:
  Hybridum (hybridum)
  Markos Zaharioudakis (markos-za)
  Rodolfo Ochoa (rodolfo-ochoa)
Related bugs:
  Bug #905035 in Zorba: "there is no way to get the Namespace Prefixes"
  https://bugs.launchpad.net/zorba/+bug/905035

For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/bug905035/+merge/89099

Implemented StaticContext::getNamespaceBindings to resolve bug #905035. In the 
same commit, the function getNamespaceURIByPrefix was deprecated because it's 
superseded by the new function.
-- 
https://code.launchpad.net/~zorba-coders/zorba/bug905035/+merge/89099
Your team Zorba Coders is subscribed to branch lp:zorba.
=== modified file 'ChangeLog'
--- ChangeLog	2012-01-18 12:18:59 +
+++ ChangeLog	2012-01-18 18:13:27 +
@@ -22,6 +22,8 @@
 support.
   * zerr is not predeclared anymore to be http://www.zorba-xquery.com/errors
   * Added API method Item::getNamespaceBindings().
+  * Added API method StaticContext::getNamespaceBindings() (see bug #905035)
+  * Deprecated StaticContext:getNamespaceURIByPrefix()
 
 version 2.1
 

=== modified file 'include/zorba/static_context.h'
--- include/zorba/static_context.h	2011-12-21 14:40:33 +
+++ include/zorba/static_context.h	2012-01-18 18:13:27 +
@@ -99,10 +99,21 @@
* could be found for the given prefix and an DiagnosticHandler has been
* registered.
* @throw ZorbaException if an error occured (e.g. no URI could be found for the given prefix).
+   *
+   * @deprecated This function is deprecated. Use getNamespaceBindings instead.
*/
   virtual String
   getNamespaceURIByPrefix( const String& aPrefix ) const = 0;
 
+  /**
+   * \brief Get the list of all namespace bindings (prefix, uri)
+   *   declared in this and its parent static contexts.
+   *
+   * @param aBindings the bindings are added to this list
+   */
+  virtual void
+  getNamespaceBindings( NsBindings& aBindings ) const = 0;
+
   /** \brief Set the default element and type namespace
* (see http://www.w3.org/TR/xquery/#static_context)
*

=== modified file 'src/api/item.cpp'
--- src/api/item.cpp	2012-01-11 17:30:25 +
+++ src/api/item.cpp	2012-01-18 18:13:27 +
@@ -389,12 +389,18 @@
 
   store::NsBindings lStoreBindings;
   m_item->getNamespaceBindings(lStoreBindings, aNsScoping);
+  aBindings.reserve(aBindings.size() + lStoreBindings.size());
+
   store::NsBindings::iterator ite = lStoreBindings.begin();
   store::NsBindings::iterator end = lStoreBindings.end();
   for (; ite != end; ++ite) {
 zstring& prefix = ite->first;
 zstring& nsuri = ite->second;
-aBindings.push_back(std::pair(prefix.str(), nsuri.str()));
+aBindings.push_back(
+std::pair(
+  Unmarshaller::newString(prefix),
+  Unmarshaller::newString(nsuri))
+  );
   }
 
   ITEM_CATCH

=== modified file 'src/api/staticcontextimpl.cpp'
--- src/api/staticcontextimpl.cpp	2012-01-11 17:30:25 +
+++ src/api/staticcontextimpl.cpp	2012-01-18 18:13:27 +
@@ -215,6 +215,38 @@
   return "";
 }
 
+/***
+
+/
+void
+StaticContextImpl::getNamespaceBindings( NsBindings& aBindings ) const
+{
+  try
+  {
+store::NsBindings lBindings;
+theCtx->get_namespace_bindings(lBindings);
+aBindings.reserve(aBindings.size() + lBindings.size());
+
+for (store::NsBindings::const_iterator lIter = lBindings.begin();
+ lIter != lBindings.end(); ++lIter)
+{
+  aBindings.push_back(
+std::pair(
+  Unmarshaller::newString(lIter->first),
+  Unmarshaller::newString(lIter->second)
+)
+  );
+}
+  }
+  catch (ZorbaException const& e)
+  {
+ZorbaImpl::notifyError(theDiagnosticHandler, e);
+  }
+  catch (std::exception const& e)
+  {
+ZorbaImpl::notifyError(theDiagnosticHandler, e.what());
+  }
+}
 
 /***
 

=== modified file 'src/api/staticcontextimpl.h'
--- src/api/staticcontextimpl.h	2011-12-21 14:40:33 +
+++ src/api/staticcontextimpl.h	2012-01-18 18:13:27 +
@@ -78,6 +78,9 @@
 
   String getNamespaceURIByPrefix( const String& prefix ) const;
 
+  void
+  getNamespaceBindings( NsBindings& aBindings ) const;
+
   bool setDefaultElementAndTypeNamespace( const String& URI );
 
   String getDefaultElementAndTypeNamespace( ) const;

=== modified file 'test/unit/CMakeLists.txt'
--- test/unit/CMakeLists.txt	2012-01-11 17:30:25 +
+++ test/unit/CMakeLists.txt	2012-01-18 18:13:27 +
@@ -94,6 +94,7 @@
   xquery_functions.cpp
   xmldatamanager.cpp
   staticcollectionmanager.cpp
+  static_context.cpp
 )
 
 IF (NOT ZORBA_NO_FULL_TEXT)

=== added file 'test/unit/static_context.cpp'
--- tes

Re: [Zorba-coders] [Merge] lp:~nbrinza/zorba/parse-fragment into lp:zorba

2012-01-18 Thread Nicolae Brinza
It certainly is the closest allowed alternative...
-- 
https://code.launchpad.net/~nbrinza/zorba/parse-fragment/+merge/89038
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


Re: [Zorba-coders] [Merge] lp:~nbrinza/zorba/parse-fragment into lp:zorba

2012-01-18 Thread William Candillon
Would xmldoc be a good prefix?
-- 
https://code.launchpad.net/~nbrinza/zorba/parse-fragment/+merge/89038
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~zorba-coders/zorba/testsuites_update into lp:zorba

2012-01-18 Thread Zorba Build Bot
The proposal to merge lp:~zorba-coders/zorba/testsuites_update into lp:zorba 
has been updated.

Status: Approved => Needs review

For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/testsuites_update/+merge/89021
-- 
https://code.launchpad.net/~zorba-coders/zorba/testsuites_update/+merge/89021
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


Re: [Zorba-coders] [Merge] lp:~zorba-coders/zorba/testsuites_update into lp:zorba

2012-01-18 Thread Chris Hillery
Looks like this change depends on Daniel's XSLT change in order for XQueryX 
Fulltext tests to work. Unfortunately I can't merge that branch 
(lp:~zorba-coders/zorba/xqueryx_fulltext) until THIS branch is merged, and 
vice-versa.

Sorin, I think the only way to break the circle is to merge the 
xqueryx_fulltext branch into this one and try again. Could you do that? Also, 
assuming the merge works for you locally, please also add expected_failures for 
XQFTTS XQueryX test cases.
-- 
https://code.launchpad.net/~zorba-coders/zorba/testsuites_update/+merge/89021
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


Re: [Zorba-coders] [Merge] lp:~zorba-coders/zorba/testsuites_update into lp:zorba

2012-01-18 Thread Zorba Build Bot
The attempt to merge lp:~zorba-coders/zorba/testsuites_update into lp:zorba 
failed. Below is the output from the failed tests.


CMake Error at /home/ceej/zo/testing/zorbatest/tester/TarmacLander.cmake:273 
(message):
  Validation queue job testsuites_update-2012-01-18T16-39-59.934Z is
  finished.  The final status was:

  

  666 tests did not succeed - changes not commited.


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

-- 
https://code.launchpad.net/~zorba-coders/zorba/testsuites_update/+merge/89021
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 867059] Re: Can not handle largest xs:unsignedLong values

2012-01-18 Thread Paul J. Lucas
** Branch linked: lp:~zorba-coders/zorba/bug-867059

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/867059

Title:
  Can not handle largest xs:unsignedLong values

Status in Zorba - The XQuery Processor:
  In Progress

Bug description:
  When ZORBA_WITH_BIG_INTEGER=OFF, the implementation of Integer used a
  "long long" for the representation. However, Zorba currently uses
  Integer for xs:unsignedLong. This can not handle the largest,
  unsigned, 64-bit value.

  A possible solution would be to templatize Integer with the
  representation type, e.g.:

  typedef IntegerImpl Integer;
  typedef IntegerImpl UnsignedInteger;

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/867059/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~zorba-coders/zorba/phpapi into lp:zorba

2012-01-18 Thread Rodolfo Ochoa
The proposal to merge lp:~zorba-coders/zorba/phpapi into lp:zorba has been 
updated.

Status: Needs review => Approved

For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/phpapi/+merge/89002
-- 
https://code.launchpad.net/~zorba-coders/zorba/phpapi/+merge/89002
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


Re: [Zorba-coders] [Merge] lp:~zorba-coders/zorba/phpapi into lp:zorba

2012-01-18 Thread Rodolfo Ochoa
Review: Approve


-- 
https://code.launchpad.net/~zorba-coders/zorba/phpapi/+merge/89002
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


Re: [Zorba-coders] [Merge] lp:~danielturcanu/zorba/plan-serializer into lp:zorba

2012-01-18 Thread Chris Hillery
zorba_data-converters_module/converters/base64/binaryReadWrite.xq   Failed



/home/ceej/zo/testing/zorbatest/tester/remotequeue/plan-serializer-2012-01-18T16-04-09.348Z/bzr/zorba/build/src/libzorba_simplestore.so.2.1.0
 [0x7fde24a51399]
/home/ceej/zo/testing/zorbatest/tester/remotequeue/plan-serializer-2012-01-18T16-04-09.348Z/bzr/zorba/build/src/libzorba_simplestore.so.2.1.0
 [0x7fde24a5152e]
/home/ceej/zo/testing/zorbatest/tester/remotequeue/plan-serializer-2012-01-18T16-04-09.348Z/bzr/zorba/build/src/libzorba_simplestore.so.2.1.0
 [0x7fde2495d70c]
/home/ceej/zo/testing/zorbatest/tester/remotequeue/plan-serializer-2012-01-18T16-04-09.348Z/bzr/zorba/build/src/libzorba_simplestore.so.2.1.0
 [0x7fde24960637]
/home/ceej/zo/testing/zorbatest/tester/remotequeue/plan-serializer-2012-01-18T16-04-09.348Z/bzr/zorba/build/src/libzorba_simplestore.so.2.1.0
 [0x7fde249b3f07]
/home/ceej/zo/testing/zorbatest/tester/remotequeue/plan-serializer-2012-01-18T16-04-09.348Z/bzr/zorba/build/src/libzorba_simplestore.so.2.1.0
 [0x7fde249a55cd]
/home/ceej/zo/testing/zorbatest/tester/remotequeue/plan-serializer-2012-01-18T16-04-09.348Z/bzr/zorba/build/src/libzorba_simplestore.so.2.1.0
 [0x7fde249a5536]
/home/ceej/zo/testing/zorbatest/tester/remotequeue/plan-serializer-2012-01-18T16-04-09.348Z/bzr/zorba/build/src/libzorba_simplestore.so.2.1.0
 [0x7fde249a5536]
/home/ceej/zo/testing/zorbatest/tester/remotequeue/plan-serializer-2012-01-18T16-04-09.348Z/bzr/zorba/build/src/libzorba_simplestore.so.2.1.0
 [0x7fde249a5536]
/home/ceej/zo/testing/zorbatest/tester/remotequeue/plan-serializer-2012-01-18T16-04-09.348Z/bzr/zorba/build/src/libzorba_simplestore.so.2.1.0
 [0x7fde249a5536]
/home/ceej/zo/testing/zorbatest/tester/remotequeue/plan-serializer-2012-01-18T16-04-09.348Z/bzr/zorba/build/src/libzorba_simplestore.so.2.1.0
 [0x7fde249a5536]
/home/ceej/zo/testing/zorbatest/tester/remotequeue/plan-serializer-2012-01-18T16-04-09.348Z/bzr/zorba/build/src/libzorba_simplestore.so.2.1.0
 [0x7fde2499f30d]
/home/ceej/zo/testing/zorbatest/tester/remotequeue/plan-serializer-2012-01-18T16-04-09.348Z/bzr/zorba/build/src/libzorba_simplestore.so.2.1.0
 [0x7fde249a2ce1]
/home/ceej/zo/testing/zorbatest/tester/remotequeue/plan-serializer-2012-01-18T16-04-09.348Z/bzr/zorba/build/src/libzorba_simplestore.so.2.1.0
 [0x7fde24b8967e]
/home/ceej/zo/testing/zorbatest/tester/remotequeue/plan-serializer-2012-01-18T16-04-09.348Z/bzr/zorba/build/src/libzorba_simplestore.so.2.1.0
 [0x7fde24b8a0a8]
/home/ceej/zo/testing/zorbatest/tester/remotequeue/plan-serializer-2012-01-18T16-04-09.348Z/bzr/zorba/build/src/libzorba_simplestore.so.2.1.0(_ZN5zorba10CompilerCB21prepare_for_serializeEv+0x2c)
 [0x7fde249d39bc]
/home/ceej/zo/testing/zorbatest/tester/remotequeue/plan-serializer-2012-01-18T16-04-09.348Z/bzr/zorba/build/src/libzorba_simplestore.so.2.1.0
 [0x7fde2475ad59]
/home/ceej/zo/testing/zorbatest/tester/remotequeue/plan-serializer-2012-01-18T16-04-09.348Z/bzr/zorba/build/src/libzorba_simplestore.so.2.1.0
 [0x7fde2475b16a]
/home/ceej/zo/testing/zorbatest/tester/remotequeue/plan-serializer-2012-01-18T16-04-09.348Z/bzr/zorba/build/test/rbkt/testdriver
 [0x408044]
/lib64/libc.so.6(__libc_start_main+0xfa) [0x325ac1e32a]
/home/ceej/zo/testing/zorbatest/tester/remotequeue/plan-serializer-2012-01-18T16-04-09.348Z/bzr/zorba/build/test/rbkt/testdriver(__gxx_personality_v0+0x1d1)
 [0x405c59]
save execution plan FAILED

-- 
https://code.launchpad.net/~danielturcanu/zorba/plan-serializer/+merge/89025
Your team Zorba Coders is requested to review the proposed merge of 
lp:~danielturcanu/zorba/plan-serializer into lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~zorba-coders/zorba/testsuites_update into lp:zorba

2012-01-18 Thread Zorba Build Bot
Validation queue starting for merge proposal.
Log at: 
http://zorbatest.lambda.nu:8080/remotequeue/testsuites_update-2012-01-18T16-39-59.934Z/log.html
-- 
https://code.launchpad.net/~zorba-coders/zorba/testsuites_update/+merge/89021
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


Re: [Zorba-coders] [Merge] lp:~zorba-coders/zorba/testsuites_update into lp:zorba

2012-01-18 Thread Chris Hillery
Sorin - could you update the commit message for the merge proposal? It seems 
there are a number of changes here besides just marking XQFTTS expected 
failures.
-- 
https://code.launchpad.net/~zorba-coders/zorba/testsuites_update/+merge/89021
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~zorba-coders/zorba/testsuites_update into lp:zorba

2012-01-18 Thread Chris Hillery
The proposal to merge lp:~zorba-coders/zorba/testsuites_update into lp:zorba 
has been updated.

Status: Needs review => Approved

For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/testsuites_update/+merge/89021
-- 
https://code.launchpad.net/~zorba-coders/zorba/testsuites_update/+merge/89021
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~danielturcanu/zorba/plan-serializer into lp:zorba

2012-01-18 Thread Zorba Build Bot
The proposal to merge lp:~danielturcanu/zorba/plan-serializer into lp:zorba has 
been updated.

Status: Approved => Needs review

For more details, see:
https://code.launchpad.net/~danielturcanu/zorba/plan-serializer/+merge/89025
-- 
https://code.launchpad.net/~danielturcanu/zorba/plan-serializer/+merge/89025
Your team Zorba Coders is requested to review the proposed merge of 
lp:~danielturcanu/zorba/plan-serializer into lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


Re: [Zorba-coders] [Merge] lp:~danielturcanu/zorba/plan-serializer into lp:zorba

2012-01-18 Thread Zorba Build Bot
The attempt to merge lp:~danielturcanu/zorba/plan-serializer into lp:zorba 
failed. Below is the output from the failed tests.


CMake Error at /home/ceej/zo/testing/zorbatest/tester/TarmacLander.cmake:273 
(message):
  Validation queue job plan-serializer-2012-01-18T16-04-09.348Z 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

-- 
https://code.launchpad.net/~danielturcanu/zorba/plan-serializer/+merge/89025
Your team Zorba Coders is requested to review the proposed merge of 
lp:~danielturcanu/zorba/plan-serializer into lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~danielturcanu/zorba/plan-serializer into lp:zorba

2012-01-18 Thread Zorba Build Bot
Validation queue starting for merge proposal.
Log at: 
http://zorbatest.lambda.nu:8080/remotequeue/plan-serializer-2012-01-18T16-04-09.348Z/log.html
-- 
https://code.launchpad.net/~danielturcanu/zorba/plan-serializer/+merge/89025
Your team Zorba Coders is requested to review the proposed merge of 
lp:~danielturcanu/zorba/plan-serializer into lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~danielturcanu/zorba/plan-serializer into lp:zorba

2012-01-18 Thread Chris Hillery
The proposal to merge lp:~danielturcanu/zorba/plan-serializer into lp:zorba has 
been updated.

Status: Needs review => Approved

For more details, see:
https://code.launchpad.net/~danielturcanu/zorba/plan-serializer/+merge/89025
-- 
https://code.launchpad.net/~danielturcanu/zorba/plan-serializer/+merge/89025
Your team Zorba Coders is requested to review the proposed merge of 
lp:~danielturcanu/zorba/plan-serializer into lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


Re: [Zorba-coders] [Merge] lp:~zorba-coders/zorba/feature-json_parser into lp:zorba

2012-01-18 Thread William Candillon
Doesn't seem to work for xqdoc
-- 
https://code.launchpad.net/~zorba-coders/zorba/feature-json_parser/+merge/89008
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


Re: [Zorba-coders] [Merge] lp:~zorba-coders/zorba/bug905035 into lp:zorba

2012-01-18 Thread Markos Zaharioudakis
Review: Approve


-- 
https://code.launchpad.net/~zorba-coders/zorba/bug905035/+merge/88922
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


Re: [Zorba-coders] [Merge] lp:~zorba-coders/zorba/bug905035 into lp:zorba

2012-01-18 Thread Markos Zaharioudakis
Matthias, the getNamespaceBindings method is rather inefficient as it will copy 
the actual strings twice. And it should also pre-allocated the space for the 
returned vector. I don't think this is going to be a major bottleneck, so I 
have approved the proposal. But in the spirit of "best practices", it is better 
if it is fixed.
-- 
https://code.launchpad.net/~zorba-coders/zorba/bug905035/+merge/88922
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


Re: [Zorba-coders] [Merge] lp:~zorba-coders/zorba/feature-json_parser into lp:zorba

2012-01-18 Thread Paul J. Lucas
The \a is the doxygen way to say the following thing is an argument and should 
be italicized.
-- 
https://code.launchpad.net/~zorba-coders/zorba/feature-json_parser/+merge/89008
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 918156] Re: fots driver for Zorba

2012-01-18 Thread Launchpad Bug Tracker
** Branch linked: lp:~zorba-coders/zorba/feature_fots

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/918156

Title:
  fots driver for Zorba

Status in Zorba - The XQuery Processor:
  In Progress

Bug description:
  There is no FOTS driver for Zorba yet.

  FOTS stands for XQuery/XPath/XSLT 3.* Test Suite, please see summary
  at: http://dev.w3.org/cvsweb/~checkout~/2011/QT3-test-
  suite/Overview.html?rev=1.5;content-type=text%2Fhtml

  For details about FOTS please see: http://dev.w3.org/cvsweb/2011/QT3
  -test-suite/.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/918156/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


Re: [Zorba-coders] [Merge] lp:~nbrinza/zorba/parse-fragment into lp:zorba

2012-01-18 Thread William Candillon
Review: Needs Information

I tried the forecast data with the parse function: very impressive!!

For documentation purposes, I would rename the parse-xml prefix to xml, this is 
more consistent right?
-- 
https://code.launchpad.net/~nbrinza/zorba/parse-fragment/+merge/89038
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 913822] Re: Debugger: Interrupt execution with Ctrl-C and stop at next breakable expression

2012-01-18 Thread Gabriel Petrovay
** Summary changed:

- Debugger: Interrupt execution with Ctrl-C and stop at next breakpoint
+ Debugger: Interrupt execution with Ctrl-C and stop at next breakable 
expression

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/913822

Title:
  Debugger: Interrupt execution with Ctrl-C and stop at next breakable
  expression

Status in Zorba - The XQuery Processor:
  Fix Committed

Bug description:
  When a long query runs and the user presses Ctrl-C, the zorba
  execution must be stopped at the next breakable position. The debugger
  client must not be quit.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/913822/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~zorba-coders/zorba/debugger_ctrl_c into lp:zorba

2012-01-18 Thread noreply
The proposal to merge lp:~zorba-coders/zorba/debugger_ctrl_c into lp:zorba has 
been updated.

Status: Approved => Merged

For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/debugger_ctrl_c/+merge/89014
-- 
https://code.launchpad.net/~zorba-coders/zorba/debugger_ctrl_c/+merge/89014
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~zorba-coders/zorba/debugger_ctrl_c into lp:zorba

2012-01-18 Thread Zorba Build Bot
Validation queue job debugger_ctrl_c-2012-01-18T14-07-01.556Z is finished. The 
final status was:

All tests succeeded!
-- 
https://code.launchpad.net/~zorba-coders/zorba/debugger_ctrl_c/+merge/89014
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 918211] [NEW] xqueryx fulltext w3c conformance generation

2012-01-18 Thread Sorin Marian Nasoi
Public bug reported:

Run the  w3c conformance generation for the xqueryx fulltext  merge
proposal made by Daniel:

https://code.launchpad.net/~zorba-coders/zorba/xqueryx_fulltext

merge proposal is here:
https://code.launchpad.net/~zorba-coders/zorba/xqueryx_fulltext/+merge/88159

** Affects: zorba
 Importance: Medium
 Assignee: Sorin Marian Nasoi (sorin.marian.nasoi)
 Status: In Progress

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/918211

Title:
  xqueryx fulltext  w3c conformance generation

Status in Zorba - The XQuery Processor:
  In Progress

Bug description:
  Run the  w3c conformance generation for the xqueryx fulltext  merge
  proposal made by Daniel:

  https://code.launchpad.net/~zorba-coders/zorba/xqueryx_fulltext

  merge proposal is here:
  https://code.launchpad.net/~zorba-coders/zorba/xqueryx_fulltext/+merge/88159

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/918211/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 918209] [NEW] xquerydoc v0.1 support/testing in Zorba

2012-01-18 Thread Sorin Marian Nasoi
Public bug reported:

xquerydoc v0.1 was just released: we should make sure that Zorba at
least runs it successfully.

Also investigate is anything needs to be done in order to support it.

** Affects: zorba
 Importance: Medium
 Assignee: Sorin Marian Nasoi (sorin.marian.nasoi)
 Status: In Progress

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/918209

Title:
  xquerydoc v0.1 support/testing in Zorba

Status in Zorba - The XQuery Processor:
  In Progress

Bug description:
  xquerydoc v0.1 was just released: we should make sure that Zorba at
  least runs it successfully.

  Also investigate is anything needs to be done in order to support it.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/918209/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~zorba-coders/zorba/debugger_ctrl_c into lp:zorba

2012-01-18 Thread Zorba Build Bot
Validation queue starting for merge proposal.
Log at: 
http://zorbatest.lambda.nu:8080/remotequeue/debugger_ctrl_c-2012-01-18T14-07-01.556Z/log.html
-- 
https://code.launchpad.net/~zorba-coders/zorba/debugger_ctrl_c/+merge/89014
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


Re: [Zorba-coders] [Merge] lp:~nbrinza/zorba/parse-fragment into lp:zorba

2012-01-18 Thread Nicolae Brinza
The Elsevier copyright came from the xqdoc.xsd, which I think I used as a base 
for the options file. I fixed it together with the other issues Matthias has 
raised. I've also fixed a couple of other cases where malformed XMLs where 
handled incorrectly. Resubmitting for merging.
-- 
https://code.launchpad.net/~nbrinza/zorba/parse-fragment/+merge/88273
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~zorba-coders/zorba/debugger_ctrl_c into lp:zorba

2012-01-18 Thread Gabriel Petrovay
The proposal to merge lp:~zorba-coders/zorba/debugger_ctrl_c into lp:zorba has 
been updated.

Commit Message changed to:

Added Ctrl-C hooking in the debugger. Ctrl-C can not kill the debugger anymore. 
It will only stop the running query.

For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/debugger_ctrl_c/+merge/89014
-- 
https://code.launchpad.net/~zorba-coders/zorba/debugger_ctrl_c/+merge/89014
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~zorba-coders/zorba/debugger_ctrl_c into lp:zorba

2012-01-18 Thread Gabriel Petrovay
The proposal to merge lp:~zorba-coders/zorba/debugger_ctrl_c into lp:zorba has 
been updated.

Status: Needs review => Approved

For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/debugger_ctrl_c/+merge/89014
-- 
https://code.launchpad.net/~zorba-coders/zorba/debugger_ctrl_c/+merge/89014
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


Re: [Zorba-coders] [Merge] lp:~zorba-coders/zorba/bug900677 into lp:zorba

2012-01-18 Thread William Candillon
Review: Needs Information

It looks very good.

Should the actual atomic type be present in the attribute element?
If you have "by @id" where @id can be 1 or "1", you might want to create two 
index keys?
If a key returns (), you might want to distinguish with empty string for 
probing later?

By using keys(), I got the following output:
http://www.zorba-xquery.com/modules/store/static/indexes/dml";>

Is the namespace useful or does it just make the life of the user harder?
Why isn't it:

Again, could you explain me how I'm supposed to probe from such XDM if one of 
the actual key returned empty sequence? Should the keys have a position 
attribute or something?

The doc/zorba/xqddf.dox doesn't seem to mention the function, it should no?

The xqdoc seems to have a formatting problem: the output example for keys() 
goes out of its box.

-- 
https://code.launchpad.net/~zorba-coders/zorba/bug900677/+merge/88973
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 878508] Re: JSON Module not escaping escape characters

2012-01-18 Thread Sorin Marian Nasoi
** Changed in: zorba
   Status: New => In Progress

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/878508

Title:
  JSON Module not escaping escape characters

Status in Zorba - The XQuery Processor:
  In Progress

Bug description:
  The module doesn't convert escaped characters as you would expect. You 
instead get a string containing the string with it's unescaped value. A 
conversion needs to be implemented, something such as:
  JSON <-> XML
  \"<-> "
  \\<-> \
  \/<-> /
  \b<-> 
  \f<-> 
  \n<-> *actual newline*
  \r<-> *actual carriage return*
  \t<-> '   '
  \u<-> &#x; or #$; with the correct hex-decimal conversion
  < <-> <
  > <-> >
  & <-> &
  ' <-> '

  This proposition might create a regresion related to bug #866757.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/878508/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 918173] Re: add auto generation of the conformance reports to lp:zorba

2012-01-18 Thread Sorin Marian Nasoi
** Changed in: zorba
   Status: New => In Progress

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/918173

Title:
  add auto generation of the conformance reports to lp:zorba

Status in Zorba - The XQuery Processor:
  In Progress

Bug description:
  Create a way to generate the conformance reports automatically in
  Zorba.

  After this is done, the Validation queue can add a new check to see if
  any regression was added with the proposed commit.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/918173/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~danielturcanu/zorba/plan-serializer into lp:zorba

2012-01-18 Thread Daniel Turcanu
The proposal to merge lp:~danielturcanu/zorba/plan-serializer into lp:zorba has 
been updated.

Commit Message changed to:

Fix in plan serializer about preparing user_functions plan for serialization.

For more details, see:
https://code.launchpad.net/~danielturcanu/zorba/plan-serializer/+merge/89025
-- 
https://code.launchpad.net/~danielturcanu/zorba/plan-serializer/+merge/89025
Your team Zorba Coders is requested to review the proposed merge of 
lp:~danielturcanu/zorba/plan-serializer into lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~danielturcanu/zorba/plan-serializer into lp:zorba

2012-01-18 Thread Daniel Turcanu
Daniel Turcanu has proposed merging lp:~danielturcanu/zorba/plan-serializer 
into lp:zorba.

Requested reviews:
  Chris Hillery (ceejatec)
  Markos Zaharioudakis (markos-za)
  Zorba Coders (zorba-coders)

For more details, see:
https://code.launchpad.net/~danielturcanu/zorba/plan-serializer/+merge/89025

Fix in plan serializer about preparing user_functions plan for serialization.
-- 
https://code.launchpad.net/~danielturcanu/zorba/plan-serializer/+merge/89025
Your team Zorba Coders is requested to review the proposed merge of 
lp:~danielturcanu/zorba/plan-serializer into lp:zorba.
=== modified file 'src/api/xqueryimpl.cpp'
--- src/api/xqueryimpl.cpp	2012-01-11 17:30:25 +
+++ src/api/xqueryimpl.cpp	2012-01-18 13:02:26 +
@@ -193,7 +193,8 @@
   }
   else
   {
-ar.compiler_cb = theCompilerCB;
+//ar.compiler_cb = theCompilerCB;
+theCompilerCB->prepare_for_serialize();
   }
 
   ar & theCompilerCB;

=== modified file 'src/compiler/api/compilercb.cpp'
--- src/compiler/api/compilercb.cpp	2012-01-11 17:30:25 +
+++ src/compiler/api/compilercb.cpp	2012-01-18 13:02:26 +
@@ -27,6 +27,7 @@
 #include "system/properties.h"
 
 #include "zorbaserialization/serialization_engine.h"
+#include "functions/udf.h"
 
 
 namespace zorba 
@@ -120,6 +121,7 @@
   theTimeout(timeout),
   theTempIndexCounter(0)
 {
+  theLocalUdfs = new rclist;
 }
 
 
@@ -143,6 +145,7 @@
   theTempIndexCounter(0),
   theConfig(cb.theConfig)
 {
+  theLocalUdfs = new rclist;
 }
 
 
@@ -169,6 +172,20 @@
 {
 }
 
+//compile all the user_functions so the expr tree is stable at serialize
+void CompilerCB::prepare_for_serialize()
+{
+  rclist::iterator udf_it;
+  for(udf_it=theLocalUdfs->begin(); udf_it != theLocalUdfs->end(); udf_it++)
+  {
+(*udf_it)->prepare_for_serialize(this);
+  }
+}
+
+rchandle >  CompilerCB::get_local_udfs()
+{
+  return theLocalUdfs;
+}
 
 /***
 

=== modified file 'src/compiler/api/compilercb.h'
--- src/compiler/api/compilercb.h	2012-01-11 17:30:25 +
+++ src/compiler/api/compilercb.h	2012-01-18 13:02:26 +
@@ -29,7 +29,7 @@
 // without having the definition of static_context availble.
 # include "context/static_context.h"
 #endif
-
+#include "zorbatypes/rclist.h"
 #include "zorbaserialization/class_serializer.h"
 
 namespace zorba {
@@ -39,7 +39,6 @@
 #endif
 class static_context;
 
-
 /***
   There is one CompilerCB per query plus one CompilerCB per invocation of an
   eval or xqdoc expression that appears in the query. The query-level ccb is
@@ -167,10 +166,14 @@
 
   configtheConfig;
 
+  rchandle >theLocalUdfs;//for plan serializer
+
 public:
   SERIALIZABLE_CLASS(CompilerCB);
   CompilerCB(::zorba::serialization::Archiver& ar);
   void serialize(::zorba::serialization::Archiver& ar);
+  void prepare_for_serialize();
+  rchandle >  get_local_udfs();
 
 public:
   CompilerCB(XQueryDiagnostics*, long timeout = -1);

=== modified file 'src/compiler/expression/var_expr.cpp'
--- src/compiler/expression/var_expr.cpp	2012-01-11 17:30:25 +
+++ src/compiler/expression/var_expr.cpp	2012-01-18 13:02:26 +
@@ -134,6 +134,7 @@
   ar & theCopyClause;
   ar & theParamPos;
   ar & theUDF;
+  ar & theSetExprs;
   ar & theIsPrivate;
   ar & theIsExternal;
   ar & theIsMutable;

=== modified file 'src/compiler/translator/translator.cpp'
--- src/compiler/translator/translator.cpp	2012-01-11 17:30:25 +
+++ src/compiler/translator/translator.cpp	2012-01-18 13:02:26 +
@@ -3331,7 +3331,7 @@
 }
 else // Process UDF (non-external) function declaration
 {
-  f = new user_function(loc, sig, NULL, scriptKind); // no body for now
+  f = new user_function(loc, sig, NULL, scriptKind, theCCB); // no body for now
 }
 
 f->setAnnotations(theAnnotations);
@@ -10424,7 +10424,8 @@
 user_function* udf = new user_function(loc,
fn->getSignature(),
NULL, // no body for now
-   fn->getScriptingKind());
+   fn->getScriptingKind(),
+   theCCB);
 
 std::vector foArgs(arity);
 std::vector udfArgs(arity);
@@ -10632,7 +10633,8 @@
   user_function_t udf(new user_function(loc,
 signature(0, paramTypes, returnType),
 body.getp(),
-body->get_scripting_detail()));
+body->get_scripting_detail(),
+theCCB));
   udf->setArgVars(argVars);
   udf->setOptimized(true);
 

=== modified file 'src/context/static_context.cpp'
--- src/context/static_context.cpp	2012-01-11 17:30:25 +
+++ src/context/static_context.cpp	2012-01-18 

Re: [Zorba-coders] [Merge] lp:~danielturcanu/zorba/plan-serializer into lp:zorba

2012-01-18 Thread Daniel Turcanu
In my debugging I saw that the flwor_expr is outside the udf. So when compiling 
a udf, probably the optimizer is changing the expression tree in other places 
as well, probably the caller of the udf, but I cannot say for sure. This 
woulnd't surprise me, it should be normal for an optimizer. 
-- 
https://code.launchpad.net/~danielturcanu/zorba/plan-serializer/+merge/88783
Your team Zorba Coders is requested to review the proposed merge of 
lp:~danielturcanu/zorba/plan-serializer into lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


Re: [Zorba-coders] [Merge] lp:~zorba-coders/zorba/debugger_ctrl_c into lp:zorba

2012-01-18 Thread David Graf
Review: Approve

Locks good!
-- 
https://code.launchpad.net/~zorba-coders/zorba/debugger_ctrl_c/+merge/89014
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 918173] [NEW] add auto generation of the conformance reports to lp:zorba

2012-01-18 Thread Sorin Marian Nasoi
Public bug reported:

Create a way to generate the conformance reports automatically in Zorba.

After this is done, the Validation queue can add a new check to see if
any regression was added with the proposed commit.

** Affects: zorba
 Importance: Medium
 Assignee: Sorin Marian Nasoi (sorin.marian.nasoi)
 Status: New

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/918173

Title:
  add auto generation of the conformance reports to lp:zorba

Status in Zorba - The XQuery Processor:
  New

Bug description:
  Create a way to generate the conformance reports automatically in
  Zorba.

  After this is done, the Validation queue can add a new check to see if
  any regression was added with the proposed commit.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/918173/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 918157] Re: Add XQFTTS to validation queue

2012-01-18 Thread Sorin Marian Nasoi
** Changed in: zorba
   Status: Triaged => In Progress

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/918157

Title:
  Add XQFTTS to validation queue

Status in Zorba - The XQuery Processor:
  In Progress

Bug description:
  In order for this to work, XQFTTS must run "clean" - this means that
  all failing tests should be marked as EXPECTED_FAILURE() for all
  supported build flags.

  I believe a lot of this work has been done, but it's not merged yet.

  Also, there may be some outstanding issues with XQueryX and XQFTTS.
  These also will need to be resolved and merged for XQFTTS to be
  enabled on the queue.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/918157/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~zorba-coders/zorba/markos-scratch into lp:zorba

2012-01-18 Thread noreply
The proposal to merge lp:~zorba-coders/zorba/markos-scratch into lp:zorba has 
been updated.

Status: Approved => Merged

For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/markos-scratch/+merge/89017
-- 
https://code.launchpad.net/~zorba-coders/zorba/markos-scratch/+merge/89017
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~zorba-coders/zorba/markos-scratch into lp:zorba

2012-01-18 Thread Zorba Build Bot
Validation queue job markos-scratch-2012-01-18T12-25-59.032Z is finished. The 
final status was:

All tests succeeded!
-- 
https://code.launchpad.net/~zorba-coders/zorba/markos-scratch/+merge/89017
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 918149] Re: Validation queue needs to test multiple build configurations

2012-01-18 Thread Chris Hillery
It will be necessary for each build+test configuration to submit results
as separate CDash builds, and the passing/failing tests for each build
should be linked from the validation queue's log.html.

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/918149

Title:
  Validation queue needs to test multiple build configurations

Status in Zorba - The XQuery Processor:
  Triaged

Bug description:
  At a minimum, we wish to test with ZORBA_WITH_BIG_INTEGER set both on
  and off.

  More generally, we should support multiple build configurations, each
  with potentially different sets of tests run. For example, we don't
  necessarily need to run XQTS with every configuration.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/918149/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


Re: [Zorba-coders] [Merge] lp:~zorba-coders/zorba/testsuites_update into lp:zorba

2012-01-18 Thread Sorin Marian Nasoi
Review: Approve


-- 
https://code.launchpad.net/~zorba-coders/zorba/testsuites_update/+merge/89021
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 918157] Re: Add XQFTTS to validation queue

2012-01-18 Thread Launchpad Bug Tracker
** Branch linked: lp:~zorba-coders/zorba/testsuites_update

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/918157

Title:
  Add XQFTTS to validation queue

Status in Zorba - The XQuery Processor:
  Triaged

Bug description:
  In order for this to work, XQFTTS must run "clean" - this means that
  all failing tests should be marked as EXPECTED_FAILURE() for all
  supported build flags.

  I believe a lot of this work has been done, but it's not merged yet.

  Also, there may be some outstanding issues with XQueryX and XQFTTS.
  These also will need to be resolved and merged for XQFTTS to be
  enabled on the queue.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/918157/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 918162] [NEW] Ability to write URI mappers in XQuery

2012-01-18 Thread Chris Hillery
Public bug reported:

For example, it would be cool if we could do something like this:

   import module namespace f="http://www.zorba-
xquery.com/modules/resolvers";

   declare function foo ()...

   f:register-uri-mapper(foo#2)

..and then subsequent URI resolutions would invoke foo().

Open issues/questions/notes:

  * Do we need different versions / parameters to register a URLResolver
that returns things other than strings? (eg. other than StreamResources)

  * May also need a separate XQXQ function to register resolvers on a
static-context object (above API is only good for intra-query usage - if
we want import statements to also be resolved, needs to be done from
outside query using XQXQ)

  * Above API may not be implementable yet - the higher-order functions
might not be exposed appropriately through the C++ API. Either fix this,
or design the API based on QNames rather than function pointers.

** Affects: zorba
 Importance: Low
 Assignee: Chris Hillery (ceejatec)
 Status: New

** Changed in: zorba
 Assignee: (unassigned) => Chris Hillery (ceejatec)

** Changed in: zorba
   Importance: Undecided => Low

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/918162

Title:
  Ability to write URI mappers in XQuery

Status in Zorba - The XQuery Processor:
  New

Bug description:
  For example, it would be cool if we could do something like this:

 import module namespace f="http://www.zorba-
  xquery.com/modules/resolvers";

 declare function foo ()...

 f:register-uri-mapper(foo#2)

  ..and then subsequent URI resolutions would invoke foo().

  Open issues/questions/notes:

* Do we need different versions / parameters to register a
  URLResolver that returns things other than strings? (eg. other than
  StreamResources)

* May also need a separate XQXQ function to register resolvers on a
  static-context object (above API is only good for intra-query usage -
  if we want import statements to also be resolved, needs to be done
  from outside query using XQXQ)

* Above API may not be implementable yet - the higher-order
  functions might not be exposed appropriately through the C++ API.
  Either fix this, or design the API based on QNames rather than
  function pointers.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/918162/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 918157] Re: Add XQFTTS to validation queue

2012-01-18 Thread Sorin Marian Nasoi
** Changed in: zorba
 Assignee: Paul J. Lucas (paul-lucas) => Sorin Marian Nasoi 
(sorin.marian.nasoi)

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/918157

Title:
  Add XQFTTS to validation queue

Status in Zorba - The XQuery Processor:
  Triaged

Bug description:
  In order for this to work, XQFTTS must run "clean" - this means that
  all failing tests should be marked as EXPECTED_FAILURE() for all
  supported build flags.

  I believe a lot of this work has been done, but it's not merged yet.

  Also, there may be some outstanding issues with XQueryX and XQFTTS.
  These also will need to be resolved and merged for XQFTTS to be
  enabled on the queue.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/918157/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 917923] Re: undeclared variable in built-in module if called through invoke

2012-01-18 Thread Markos Zaharioudakis
** Changed in: zorba
   Status: New => Fix Committed

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/917923

Title:
  undeclared variable in built-in module if called through invoke

Status in Zorba - The XQuery Processor:
  Fix Committed

Bug description:
  [err:XPDY0002]: "r:foo": undeclared variable is raised for the
  following scenario.

  --
  A built-in module such as random declares a variable as follows:

  declare variable $r:foo := 1;

  --
  A library module foo declares a variable and accesses $r:foo in a function.

  module namespace foo = "http://foo.com/";;

  import module namespace r = 'http://www.zorba-
  xquery.com/modules/random';

  declare variable $foo:blub := 1;

  declare function foo:bar()
  {
$r:foo
  };

  --
  A main module imports the library module foo and invokes the function 
foo:bar()

  import module namespace invoke = 
'http://www.zorba-xquery.com/modules/reflection';
  import module namespace foo = "http://foo.com/"; at 
"/home/mbrantner/zorba/build/foo.xq";

  invoke:invoke-s ( fn:QName ( 'http://foo.com/', 'bar' ) )

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/917923/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 918164] [NEW] C++ API for JSONiq

2012-01-18 Thread Chris Hillery
Public bug reported:

To at least include punching new store::Item methods through the
zorba::Item API.

** Affects: zorba
 Importance: High
 Assignee: Chris Hillery (ceejatec)
 Status: Confirmed

** Changed in: zorba
 Assignee: (unassigned) => Chris Hillery (ceejatec)

** Changed in: zorba
Milestone: None => 3.0

** Changed in: zorba
   Importance: Undecided => High

** Changed in: zorba
   Status: New => Confirmed

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/918164

Title:
  C++ API for JSONiq

Status in Zorba - The XQuery Processor:
  Confirmed

Bug description:
  To at least include punching new store::Item methods through the
  zorba::Item API.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/918164/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 918143] Re: xqdoc version for modules

2012-01-18 Thread Sorin Marian Nasoi
** Changed in: zorba
   Status: New => In Progress

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/918143

Title:
  xqdoc version for modules

Status in Zorba - The XQuery Processor:
  In Progress

Bug description:
  As pointed out by William, the version of the module is not shown in
  the XQDoc documentation.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/918143/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~zorba-coders/zorba/markos-scratch into lp:zorba

2012-01-18 Thread Zorba Build Bot
Validation queue starting for merge proposal.
Log at: 
http://zorbatest.lambda.nu:8080/remotequeue/markos-scratch-2012-01-18T12-25-59.032Z/log.html
-- 
https://code.launchpad.net/~zorba-coders/zorba/markos-scratch/+merge/89017
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 918151] [NEW] JSON serializer should disallow mixed JDM/XDM

2012-01-18 Thread Chris Hillery
Public bug reported:

Based on the first item in the sequence being serialized, the default
serializer (currently xml_emitter) should either output only JSON items,
or only XDM items. It should raise an error if a mixed sequence is
detected. It should also suppress the XML version declaration for JSON
sequences.

Ideally there would be some internally flag (or possibly an alternate
serialization method, eg. -z method=mixed) to allow serialization of
mixed sequences for testing purposes, even though such output would be
neither valid XML nor valid JSON.

** Affects: zorba
 Importance: Medium
 Assignee: Chris Hillery (ceejatec)
 Status: Triaged

** Changed in: zorba
Milestone: None => 3.0

** Changed in: zorba
   Importance: Undecided => Medium

** Changed in: zorba
 Assignee: (unassigned) => Chris Hillery (ceejatec)

** Changed in: zorba
   Status: New => Triaged

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/918151

Title:
  JSON serializer should disallow mixed JDM/XDM

Status in Zorba - The XQuery Processor:
  Triaged

Bug description:
  Based on the first item in the sequence being serialized, the default
  serializer (currently xml_emitter) should either output only JSON
  items, or only XDM items. It should raise an error if a mixed sequence
  is detected. It should also suppress the XML version declaration for
  JSON sequences.

  Ideally there would be some internally flag (or possibly an alternate
  serialization method, eg. -z method=mixed) to allow serialization of
  mixed sequences for testing purposes, even though such output would be
  neither valid XML nor valid JSON.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/918151/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 867097] Re: Derive w3c_known_failures.txt from EXPECTED_FAILURE()

2012-01-18 Thread Chris Hillery
** Changed in: zorba
Milestone: None => 3.0

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/867097

Title:
  Derive w3c_known_failures.txt from EXPECTED_FAILURE()

Status in Zorba - The XQuery Processor:
  New

Bug description:
  Having two sources of known-failing XQTS tests is error-prone. In
  particular, because the remote queue depends on
  w3c_known_failures.txt, it does not test that EXPECTED_FAILURE()s are
  correctly updated when things are fixed.

  We should build w3c_known_failures.txt out of the EXPECTED_FAILURE()s
  list, and eliminate the auto-progression mechanism on the remote
  queue.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/867097/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~zorba-coders/zorba/markos-scratch into lp:zorba

2012-01-18 Thread Markos Zaharioudakis
The proposal to merge lp:~zorba-coders/zorba/markos-scratch into lp:zorba has 
been updated.

Status: Needs review => Approved

For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/markos-scratch/+merge/89017
-- 
https://code.launchpad.net/~zorba-coders/zorba/markos-scratch/+merge/89017
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~ceejatec/zorba/ignore into lp:zorba

2012-01-18 Thread Zorba Build Bot
The proposal to merge lp:~ceejatec/zorba/ignore into lp:zorba has been updated.

Status: Approved => Needs review

For more details, see:
https://code.launchpad.net/~ceejatec/zorba/ignore/+merge/86507
-- 
https://code.launchpad.net/~ceejatec/zorba/ignore/+merge/86507
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


Re: [Zorba-coders] [Merge] lp:~ceejatec/zorba/ignore into lp:zorba

2012-01-18 Thread Zorba Build Bot
Voting does not meet specified criteria. Required: Approve > 1, Disapprove < 1. 
Got: 1 Pending.
-- 
https://code.launchpad.net/~ceejatec/zorba/ignore/+merge/86507
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


Re: [Zorba-coders] [Merge] lp:~zorba-coders/zorba/markos-scratch into lp:zorba

2012-01-18 Thread Markos Zaharioudakis
Review: Approve


-- 
https://code.launchpad.net/~zorba-coders/zorba/markos-scratch/+merge/89017
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~ceejatec/zorba/ignore into lp:zorba

2012-01-18 Thread Zorba Build Bot
Validation queue job ignore-2012-01-18T11-53-53.868Z is finished. The final 
status was:

All tests succeeded!
-- 
https://code.launchpad.net/~ceejatec/zorba/ignore/+merge/86507
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~zorba-coders/zorba/markos-scratch into lp:zorba

2012-01-18 Thread Markos Zaharioudakis
Markos Zaharioudakis has proposed merging lp:~zorba-coders/zorba/markos-scratch 
into lp:zorba.

Requested reviews:
  Markos Zaharioudakis (markos-za)

For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/markos-scratch/+merge/89017

Fixed bug 917923 (bug in copying outer var values into the eval dynamic context)
-- 
https://code.launchpad.net/~zorba-coders/zorba/markos-scratch/+merge/89017
Your team Zorba Coders is subscribed to branch lp:zorba.
=== modified file 'ChangeLog'
--- ChangeLog	2012-01-11 17:30:25 +
+++ ChangeLog	2012-01-18 12:21:28 +
@@ -7,6 +7,7 @@
 %ann:must-copy-input-nodes to be used by the no-copy optimization.
   * Caching of results for recursive functions with atomic parameter and return types.
   * Added %ann:cache and %ann:no-cache to enable or disable caching of results of functions with atomic parameter and return types.
+  * Fixed bug 917923 (bug in copying outer var values into the eval dynamic context)
   * Fixed bug 909126 (bug in cloning of var_expr)
   * Fixed bug in destruction of exit_catcher_expr
   * Types-related optimization for the comparison operators

=== modified file 'src/context/dynamic_context.cpp'
--- src/context/dynamic_context.cpp	2011-12-21 14:40:33 +
+++ src/context/dynamic_context.cpp	2012-01-18 12:21:28 +
@@ -400,11 +400,8 @@
   if (varid >= theVarValues.size() ||
   theVarValues[varid].theState == VarValue::undeclared)
   {
-throw XQUERY_EXCEPTION(
-  err::XPDY0002,
-  ERROR_PARAMS( varname->getStringValue(), ZED( VariabledUndeclared ) ),
-  ERROR_LOC( loc )
-);
+RAISE_ERROR(err::XPDY0002, loc,
+ERROR_PARAMS(varname->getStringValue(), ZED(VariabledUndeclared)));
   }
 
   VarValue& var = theVarValues[varid];
@@ -449,22 +446,16 @@
   if (varid >= theVarValues.size() ||
   theVarValues[varid].theState == VarValue::undeclared)
   {
-zstring lVarName = static_context::var_name(varname.getp());
-throw XQUERY_EXCEPTION(
-  err::XPDY0002,
-  ERROR_PARAMS( lVarName, ZED( VariabledUndeclared ) ),
-  ERROR_LOC( loc )
-);
+zstring varName = static_context::var_name(varname.getp());
+RAISE_ERROR(err::XPDY0002, loc,
+ERROR_PARAMS(varName, ZED(VariabledUndeclared)));
   }
 
   if (theVarValues[varid].theState == VarValue::declared)
   {
-zstring lVarName = static_context::var_name(varname.getp());
-throw XQUERY_EXCEPTION(
-  err::XPDY0002,
-  ERROR_PARAMS( lVarName, ZED( VariabledHasNoValue ) ),
-  ERROR_LOC( loc )
-);
+zstring varName = static_context::var_name(varname.getp());
+RAISE_ERROR(err::XPDY0002, loc,
+ERROR_PARAMS(varName, ZED(VariabledHasNoValue)));
   }
 
   const VarValue& var = theVarValues[varid];

=== modified file 'src/context/dynamic_context.h'
--- src/context/dynamic_context.h	2011-11-09 05:42:08 +
+++ src/context/dynamic_context.h	2012-01-18 12:21:28 +
@@ -51,22 +51,7 @@
 {
   friend class DebugIterator;
 
-protected:
-
-  struct dctx_value_t
-  {
-typedef enum
-{
-  no_val,
-  ext_func_param, // params that can be used by ext. functions
-  ext_func_param_typed 
-} val_type_t;
-
-val_type_t  type;
-void*   func_param;
-  };
-
-
+public:
   struct VarValue
   {
 typedef enum
@@ -81,7 +66,7 @@
 {
   store::Item* item;
   store::TempSeq*  temp_seq;
-}  theValue;
+}   theValue;
 
 ValueState  theState;
 
@@ -92,7 +77,28 @@
 
 VarValue(const VarValue& other);
 
-~VarValue(); 
+~VarValue();
+
+bool isSet() const { return (theState == item || theState == temp_seq); }
+
+bool hasItemValue() const { return (theState == item); }
+
+bool hasSeqValue() const { return (theState == temp_seq); }
+  };
+
+protected:
+
+  struct dctx_value_t
+  {
+typedef enum
+{
+  no_val,
+  ext_func_param, // params that can be used by ext. functions
+  ext_func_param_typed 
+} val_type_t;
+
+val_type_t  type;
+void*   func_param;
   };
 
   typedef HashMapZString ValueMap;
@@ -140,6 +146,8 @@
 
   long get_implicit_timezone() const;
 
+  const std::vector& get_variables() const { return theVarValues; }
+
   void add_variable(ulong varid, store::Item_t& value);
 
   void add_variable(ulong varid, store::Iterator_t& value);

=== modified file 'src/runtime/eval/eval.cpp'
--- src/runtime/eval/eval.cpp	2012-01-11 17:30:25 +
+++ src/runtime/eval/eval.cpp	2012-01-18 12:21:28 +
@@ -222,38 +222,33 @@
 
   dynamic_context* outerDctx = evalDctx->getParent();
 
-  std::vector globalVars;
-  outerSctx->get_parent()->getVariables(globalVars, theForDebugger, true);
-  
-  FOR_EACH(std::vector, ite, globalVars)
+  const std::vector& outerVars = outerDctx->get_variables();
+  csize numOuterVars = outerVars.size();
+
+  for (csize i = 0; i < numOuterVars; ++i)
   {
-var_expr* globalVar = (*ite).getp();
-
-ulong globalVarId = globalVar->get_unique_id();
-
-if (globalVarId > maxOuterVar

[Zorba-coders] [Bug 918159] Re: Add XQJ to validation queue

2012-01-18 Thread Chris Hillery
Rodolfo, I assume you have written a testdriver of some kind for testing
the Zorba XQJ interface - is that part of the Zorba build and ctest
configuration? If not, can you make it so?

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/918159

Title:
  Add XQJ to validation queue

Status in Zorba - The XQuery Processor:
  Confirmed

Bug description:
  Need JRE/JDK (at least) to get it to build, and then need to download
  XQJ and run it.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/918159/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 918159] [NEW] Add XQJ to validation queue

2012-01-18 Thread Chris Hillery
Public bug reported:

Need JRE/JDK (at least) to get it to build, and then need to download
XQJ and run it.

** Affects: zorba
 Importance: Medium
 Assignee: Rodolfo Ochoa (rodolfo-ochoa)
 Status: Confirmed

** Changed in: zorba
Milestone: None => 3.0

** Changed in: zorba
 Assignee: (unassigned) => Rodolfo Ochoa (rodolfo-ochoa)

** Changed in: zorba
   Importance: Undecided => Medium

** Changed in: zorba
   Status: New => Confirmed

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/918159

Title:
  Add XQJ to validation queue

Status in Zorba - The XQuery Processor:
  Confirmed

Bug description:
  Need JRE/JDK (at least) to get it to build, and then need to download
  XQJ and run it.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/918159/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 918149] Re: Validation queue needs to test multiple build configurations

2012-01-18 Thread Chris Hillery
Probably the validation queue should NOT short-circuit - if one build
configuration fails to build, it should still try the rest. That way we
get the most information per queue run. Probably any egregious build
failures will cause all configurations to fail quickly, so there isn't
much time penalty.

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/918149

Title:
  Validation queue needs to test multiple build configurations

Status in Zorba - The XQuery Processor:
  Triaged

Bug description:
  At a minimum, we wish to test with ZORBA_WITH_BIG_INTEGER set both on
  and off.

  More generally, we should support multiple build configurations, each
  with potentially different sets of tests run. For example, we don't
  necessarily need to run XQTS with every configuration.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/918149/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 918156] [NEW] fots driver for Zorba

2012-01-18 Thread Sorin Marian Nasoi
Public bug reported:

There is no FOTS driver for Zorba yet.

FOTS stands for XQuery/XPath/XSLT 3.* Test Suite, please see summary at:
http://dev.w3.org/cvsweb/~checkout~/2011/QT3-test-
suite/Overview.html?rev=1.5;content-type=text%2Fhtml

For details about FOTS please see: http://dev.w3.org/cvsweb/2011/QT3
-test-suite/.

** Affects: zorba
 Importance: Medium
 Assignee: Sorin Marian Nasoi (sorin.marian.nasoi)
 Status: In Progress

** Changed in: zorba
   Status: New => In Progress

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/918156

Title:
  fots driver for Zorba

Status in Zorba - The XQuery Processor:
  In Progress

Bug description:
  There is no FOTS driver for Zorba yet.

  FOTS stands for XQuery/XPath/XSLT 3.* Test Suite, please see summary
  at: http://dev.w3.org/cvsweb/~checkout~/2011/QT3-test-
  suite/Overview.html?rev=1.5;content-type=text%2Fhtml

  For details about FOTS please see: http://dev.w3.org/cvsweb/2011/QT3
  -test-suite/.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/918156/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 918157] [NEW] Add XQFTTS to validation queue

2012-01-18 Thread Chris Hillery
Public bug reported:

In order for this to work, XQFTTS must run "clean" - this means that all
failing tests should be marked as EXPECTED_FAILURE() for all supported
build flags.

I believe a lot of this work has been done, but it's not merged yet.

Also, there may be some outstanding issues with XQueryX and XQFTTS.
These also will need to be resolved and merged for XQFTTS to be enabled
on the queue.

** Affects: zorba
 Importance: High
 Assignee: Paul J. Lucas (paul-lucas)
 Status: Triaged

** Changed in: zorba
Milestone: None => 3.0

** Changed in: zorba
 Assignee: (unassigned) => Chris Hillery (ceejatec)

** Changed in: zorba
 Assignee: Chris Hillery (ceejatec) => Paul J. Lucas (paul-lucas)

** Changed in: zorba
   Importance: Undecided => High

** Changed in: zorba
   Status: New => Triaged

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/918157

Title:
  Add XQFTTS to validation queue

Status in Zorba - The XQuery Processor:
  Triaged

Bug description:
  In order for this to work, XQFTTS must run "clean" - this means that
  all failing tests should be marked as EXPECTED_FAILURE() for all
  supported build flags.

  I believe a lot of this work has been done, but it's not merged yet.

  Also, there may be some outstanding issues with XQueryX and XQFTTS.
  These also will need to be resolved and merged for XQFTTS to be
  enabled on the queue.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/918157/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


Re: [Zorba-coders] [Merge] lp:~zorba-coders/zorba/debugger_ctrl_c into lp:zorba

2012-01-18 Thread Gabriel Petrovay
Review: Approve


-- 
https://code.launchpad.net/~zorba-coders/zorba/debugger_ctrl_c/+merge/89014
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~zorba-coders/zorba/debugger_ctrl_c into lp:zorba

2012-01-18 Thread Gabriel Petrovay
Gabriel Petrovay has proposed merging lp:~zorba-coders/zorba/debugger_ctrl_c 
into lp:zorba.

Requested reviews:
  Gabriel Petrovay (gabipetrovay)
  David Graf (davidagraf)
Related bugs:
  Bug #913822 in Zorba: "Debugger: Interrupt execution with Ctrl-C and stop at 
next breakpoint"
  https://bugs.launchpad.net/zorba/+bug/913822

For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/debugger_ctrl_c/+merge/89014

Added Ctrl-C hooking in the debugger. Ctrl-C can not kill the debugger anymore. 
It will only stop the running query.
-- 
https://code.launchpad.net/~zorba-coders/zorba/debugger_ctrl_c/+merge/89014
Your team Zorba Coders is subscribed to branch lp:zorba.
=== modified file 'bin/CMakeLists.txt'
--- bin/CMakeLists.txt	2012-01-11 17:30:25 +
+++ bin/CMakeLists.txt	2012-01-18 12:08:07 +
@@ -31,6 +31,7 @@
 
   SET (DEBUG_CLIENT_SRCS
 debugger/main.cpp
+debugger/xqdb_client.cpp
 debugger/process_listener.cpp
 debugger/command_prompt.cpp
 debugger/command_line_handler.cpp

=== modified file 'bin/debugger/command_prompt.cpp'
--- bin/debugger/command_prompt.cpp	2012-01-11 17:30:25 +
+++ bin/debugger/command_prompt.cpp	2012-01-18 12:08:07 +
@@ -94,6 +94,8 @@
 void
 CommandPrompt::execute()
 {
+  bool lWithOutput = true;
+
   for (;;) {
 #ifdef ZORBA_HAVE_LIBEDIT_H
 const char* lBuf;
@@ -101,10 +103,19 @@
 lBuf = el_gets(theEditLine, &lCharsRead);
 std::string lCommandLine(lBuf, lCharsRead - 1);
 #else
-std::cout << "(xqdb) ";
+if (lWithOutput) {
+  std::cout << "(xqdb) ";
+}
+lWithOutput = true;
 std::string lCommandLine;
 std::getline(std::cin, lCommandLine);
+if (std::cin.fail()) {
+  lWithOutput = false;
+  std::cin.clear();
+  continue;
+}
 #endif
+
 std::vector lArgs;
 
 // split the command into arguments

=== modified file 'bin/debugger/main.cpp'
--- bin/debugger/main.cpp	2012-01-11 17:30:25 +
+++ bin/debugger/main.cpp	2012-01-18 12:08:07 +
@@ -24,67 +24,47 @@
 
 #include 
 
-#include "command_prompt.h"
-#include "command_line_handler.h"
+#include "xqdb_client.h"
 #include "process_listener.h"
 
+
 using namespace zorba;
 using namespace zorba::debugger;
 
-class XqdbClient {
-
-  public:
-
-XqdbClient(unsigned int aPort)
-{
-  theIdQueue = new LockFreeQueue();
-  theQuitQueue = new LockFreeQueue();
-  theEventHandler = new EventHandler(*theIdQueue, *theQuitQueue);
-  theEventHandler->init();
-
-  theCommandPrompt = new CommandPrompt();
-  theCommandLineHandler = new CommandLineHandler(aPort, *theIdQueue, *theQuitQueue, theEventHandler, theCommandPrompt);
-}
-
-~XqdbClient()
-{
-  if (theCommandLineHandler) {
-delete theCommandLineHandler;
-  }
-  if (theCommandPrompt) {
-delete theCommandPrompt;
-  }
-  if (theEventHandler) {
-delete theEventHandler;
-  }
-
-  delete theIdQueue;
-  delete theQuitQueue;
-}
-
-void start()
-{
-  theCommandLineHandler->execute();
-}
-
-  private:
-
-LockFreeQueue* theIdQueue;
-LockFreeQueue*theQuitQueue;
-
-EventHandler*   theEventHandler;
-CommandPrompt*  theCommandPrompt;
-CommandLineHandler* theCommandLineHandler;
-};
-
-
+
+std::auto_ptr theClient;
+
+// this will make sure the xqdb process will not quit when Ctrl-C is pressed
+#ifdef WIN32
+BOOL WINAPI
+ctrlC_Handler(DWORD aCtrlType)
+{
+  if (CTRL_C_EVENT == aCtrlType) {
+return true;
+  }
+  return false;
+}
+#else
+void
+ctrlC_Handler(int lParam)
+{
+  // an empty sugnal handler on Linux should do the job
+}
+#endif
+
+
+// this handler function is passed the the zorba process listener and will
+// the client if the zorba process terminates
 void
 onExitProcess(ExitCode aExitCode) {
-  //if (aExitCode != -1) {
-  //  std::cout << "Zorba has exited with code: " << aExitCode << std::endl;
-  //}
-  std::cout << "Terminating debugger client."<< std::endl;
-  // TODO: and the memory?
+  std::cout << std::endl << "Terminating debugger client." << std::endl;
+
+#ifndef WIN32
+  XqdbClient* lClient = theClient.release();
+  if (lClient) {
+delete lClient;
+  }
+#endif
 
   exit(aExitCode);
 }
@@ -322,6 +302,12 @@
 _tmain(int argc, _TCHAR* argv[])
 #endif
 {
+#ifdef WIN32
+  SetConsoleCtrlHandler(ctrlC_Handler, TRUE);
+#else
+  signal(SIGINT, ctrlC_Handler);
+#endif
+
   // **
   // processing arguments
 
@@ -369,12 +355,19 @@
 // **
 // start the debugger command line
 
-std::auto_ptr theClient(new XqdbClient(lPort));
+theClient.reset(new XqdbClient(lPort));
 theClient->start();
 
   } catch (...) {
 return -1;
   }
 
+#ifndef WIN32
+  XqdbClient* lClient = theClient.release();
+  if (lClient) {
+delete lClient;
+  }
+#endif
+
   return 0;
 }

=== added file 'bi

[Zorba-coders] [Bug 918143] [NEW] xqdoc version for modules

2012-01-18 Thread Sorin Marian Nasoi
Public bug reported:

As pointed out by William, the version of the module is not shown in the
XQDoc documentation.

** Affects: zorba
 Importance: Medium
 Assignee: Sorin Marian Nasoi (sorin.marian.nasoi)
 Status: New

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/918143

Title:
  xqdoc version for modules

Status in Zorba - The XQuery Processor:
  New

Bug description:
  As pointed out by William, the version of the module is not shown in
  the XQDoc documentation.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/918143/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 918145] [NEW] Add CSX module

2012-01-18 Thread Chris Hillery
Public bug reported:

The OpenCSX module needs to be completed, specifically to fully support
encode/decode of XDM instances with validated data.

** Affects: zorba
 Importance: High
 Assignee: Chris Hillery (ceejatec)
 Status: Confirmed

** Changed in: zorba
Milestone: None => 3.0

** Changed in: zorba
 Assignee: (unassigned) => Chris Hillery (ceejatec)

** Changed in: zorba
   Importance: Undecided => High

** Changed in: zorba
   Status: New => Confirmed

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/918145

Title:
  Add CSX module

Status in Zorba - The XQuery Processor:
  Confirmed

Bug description:
  The OpenCSX module needs to be completed, specifically to fully
  support encode/decode of XDM instances with validated data.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/918145/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 867165] Re: Need to rename or move "testdriver"

2012-01-18 Thread Chris Hillery
We should probably replace this with the XQuery-based test driver that
is being developed.

** Changed in: zorba
Milestone: None => 3.0

** Changed in: zorba
 Assignee: nobody (nobody-users) => Chris Hillery (ceejatec)

** Changed in: zorba
   Status: New => Confirmed

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/867165

Title:
  Need to rename or move "testdriver"

Status in Zorba - The XQuery Processor:
  Confirmed

Bug description:
  We currently ship "testdriver" with that name. That is too generic a
  name to put directly onto a user's global path (as will happen if you
  install the Ubuntu Zorba distribution). Either we should rename it, or
  (perhaps better) move it out of bin/ and into somewhere more esoteric
  under share/. Either way, ZorbaModule and everything else that refers
  to it will need to be sure to find it in the new place.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/867165/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 918143] Re: xqdoc version for modules

2012-01-18 Thread Sorin Marian Nasoi
** Branch linked: lp:~zorba-
coders/zorba/feature_xqdoc_version_for_modules

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/918143

Title:
  xqdoc version for modules

Status in Zorba - The XQuery Processor:
  New

Bug description:
  As pointed out by William, the version of the module is not shown in
  the XQDoc documentation.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/918143/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 918149] [NEW] Validation queue needs to test multiple build configurations

2012-01-18 Thread Chris Hillery
Public bug reported:

At a minimum, we wish to test with ZORBA_WITH_BIG_INTEGER set both on
and off.

More generally, we should support multiple build configurations, each
with potentially different sets of tests run. For example, we don't
necessarily need to run XQTS with every configuration.

** Affects: zorba
 Importance: High
 Assignee: Chris Hillery (ceejatec)
 Status: Triaged

** Changed in: zorba
Milestone: None => 3.0

** Changed in: zorba
   Importance: Undecided => High

** Changed in: zorba
 Assignee: (unassigned) => Chris Hillery (ceejatec)

** Changed in: zorba
   Status: New => Triaged

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/918149

Title:
  Validation queue needs to test multiple build configurations

Status in Zorba - The XQuery Processor:
  Triaged

Bug description:
  At a minimum, we wish to test with ZORBA_WITH_BIG_INTEGER set both on
  and off.

  More generally, we should support multiple build configurations, each
  with potentially different sets of tests run. For example, we don't
  necessarily need to run XQTS with every configuration.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/918149/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


Re: [Zorba-coders] [Merge] lp:~zorba-coders/zorba/feature_xqdoc_version_for_modules into lp:zorba

2012-01-18 Thread Sorin Marian Nasoi
If there is a module that is missing it's isCore property, than this is an 
error inside Zorba and we should open a separate bug for this.

-- 
https://code.launchpad.net/~zorba-coders/zorba/feature_xqdoc_version_for_modules/+merge/89013
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


Re: [Zorba-coders] [Merge] lp:~zorba-coders/zorba/feature_xqdoc_version_for_modules into lp:zorba

2012-01-18 Thread Sorin Marian Nasoi
Review: Approve

Chris confirmed that no module (external or core) should miss it's isCore 
attribute inside ZorbManifest.xml.

Your proposed fix, although correct, is not needed IMHO and should stay like it 
is, meaning with:
xs:boolean(data($xqdoc2html:ZorbaManifest/module[@uri= $moduleUri]/@isCore))

Please let me know how I can reproduce the issue you mention, where you get an 
error inside the xqdoc2html:get-is-core function.
-- 
https://code.launchpad.net/~zorba-coders/zorba/feature_xqdoc_version_for_modules/+merge/89013
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~zorba-coders/zorba/feature_xqdoc_version_for_modules into lp:zorba

2012-01-18 Thread Sorin Marian Nasoi
The proposal to merge lp:~zorba-coders/zorba/feature_xqdoc_version_for_modules 
into lp:zorba has been updated.

Commit Message changed to:

Added the information about the Zorba module version in the generated XQDoc 
documentation.

For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/feature_xqdoc_version_for_modules/+merge/89013
-- 
https://code.launchpad.net/~zorba-coders/zorba/feature_xqdoc_version_for_modules/+merge/89013
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~zorba-coders/zorba/feature_xqdoc_version_for_modules into lp:zorba

2012-01-18 Thread Sorin Marian Nasoi
Sorin Marian Nasoi has proposed merging 
lp:~zorba-coders/zorba/feature_xqdoc_version_for_modules into lp:zorba.

Requested reviews:
  Sorin Marian Nasoi (sorin.marian.nasoi)
  William Candillon (wcandillon)

For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/feature_xqdoc_version_for_modules/+merge/89013

Added the information about the Zorba module version in the generated XQDoc 
documentation.
-- 
https://code.launchpad.net/~zorba-coders/zorba/feature_xqdoc_version_for_modules/+merge/89013
Your team Zorba Coders is subscribed to branch lp:zorba.
=== modified file 'modules/com/zorba-xquery/www/modules/xqdoc2xhtml/index.xq'
--- modules/com/zorba-xquery/www/modules/xqdoc2xhtml/index.xq	2011-12-21 14:40:33 +
+++ modules/com/zorba-xquery/www/modules/xqdoc2xhtml/index.xq	2012-01-18 11:56:24 +
@@ -1121,6 +1121,13 @@
  else
   (XQuery version and encoding for this module:,
xquery version "{$module/xqdoc:comment/xqdoc:custom[@tag='XQuery version']/text()}" encoding "{$module/xqdoc:comment/xqdoc:custom[@tag='encoding']/text()}";)
+ ),
+ let $modVersion := xqdoc2html:get-module-version($moduleUri)
+ return
+ if($modVersion = "") then ()
+ else
+ (Zorba version for this module:,
+  The latest version of this module is {$modVersion}. For more information about module versioning in Zorba please check out this resource.
  )
 };
 

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~ceejatec/zorba/ignore into lp:zorba

2012-01-18 Thread Zorba Build Bot
Validation queue starting for merge proposal.
Log at: 
http://zorbatest.lambda.nu:8080/remotequeue/ignore-2012-01-18T11-53-53.868Z/log.html
-- 
https://code.launchpad.net/~ceejatec/zorba/ignore/+merge/86507
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~ceejatec/zorba/ignore into lp:zorba

2012-01-18 Thread Chris Hillery
The proposal to merge lp:~ceejatec/zorba/ignore into lp:zorba has been updated.

Status: Needs review => Approved

For more details, see:
https://code.launchpad.net/~ceejatec/zorba/ignore/+merge/86507
-- 
https://code.launchpad.net/~ceejatec/zorba/ignore/+merge/86507
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


Re: [Zorba-coders] [Merge] lp:~danielturcanu/zorba/plan-serializer into lp:zorba

2012-01-18 Thread Markos Zaharioudakis
> For example in one test, in flwor_expr object, theClauses was receiving
> another flwor_clause in the vector, which made the vector to increase and move
> to another space. But the initial flwor_clause had already been serialized,
> and its address was registered for address duplication detection. Sometimes
> another object would be allocated at the same address, and the plan serializer
> thought it is the same object. This only occured sometimes, so the problem was
> hard to debug.
> So as a rule, all the objects should freeze during plan serialization, nothing
> should change.

I am sorry, but this still does not answer my question. I assume that the 
flwor_expr is inside the body of a udf. Are you saying that this body is 
somehow serialized, without having being optimized yet? If yes, I don't 
understand how this is possible, given that user_function::serialize() will 
first optimize the body (if not optimized already) before serializing it. 
Either I am missing something, or the real bug is somewhere else and you are 
just covering it up with this patch.
-- 
https://code.launchpad.net/~danielturcanu/zorba/plan-serializer/+merge/88783
Your team Zorba Coders is requested to review the proposed merge of 
lp:~danielturcanu/zorba/plan-serializer into lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


Re: [Zorba-coders] [Merge] lp:~zorba-coders/zorba/feature-json_parser into lp:zorba

2012-01-18 Thread William Candillon
Review: Needs Fixing

The documentation is missing some examples.
The example section at http://docs.basex.org/wiki/JSON_Module is a good place 
to get inspired.

Why A chars have a backslash in error code descriptions:
ZJSE0001 if \a $xml is not a document or element node.
ZJSE0002 if \a $xml contains an element that is missing a required attribute.
ZJSE0003 if \a $xml contains an attribute having an illegal value.
ZJSE0004 if \a $xml contains an illegal element.
ZJSE0005 if \a $xml contains an illegal child element for a JSON type.
ZJSE0006 if \a $xml contains an illegal child element.
ZJSE0007 if \a $xml contains an illegal text node.
ZJSE0008 if \a $xml contains an illegal value for a JSON type.
-- 
https://code.launchpad.net/~zorba-coders/zorba/feature-json_parser/+merge/89008
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 885512] Re: Windows 8 Developer Preview bugs

2012-01-18 Thread Chris Hillery
Based on the zorba-users discussion thread, the original reporter of
this bug was able to compile with the latest changes. So, I'm marking
this bug as fixed.

** Changed in: zorba
Milestone: None => 2.2

** Changed in: zorba
   Status: New => Fix Committed

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/885512

Title:
  Windows 8 Developer Preview bugs

Status in Zorba - The XQuery Processor:
  Fix Committed

Bug description:
  The Zorba code-base fails to compile using the "Windows 8 Developer
  Preview".

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/885512/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


Re: [Zorba-coders] [Merge] lp:~zorba-coders/zorba/feature-json_parser into lp:zorba

2012-01-18 Thread Sorin Marian Nasoi
I have resubmitted the merge proposal after committing the fix for the JSON 
tests.
-- 
https://code.launchpad.net/~zorba-coders/zorba/feature-json_parser/+merge/89008
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~zorba-coders/zorba/feature-json_parser into lp:zorba

2012-01-18 Thread Sorin Marian Nasoi
The proposal to merge lp:~zorba-coders/zorba/feature-json_parser into lp:zorba 
has been updated.

Commit Message changed to:

New JSON parser and module.
Fixed the missing quote in the documentation.

For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/feature-json_parser/+merge/89008
-- 
https://code.launchpad.net/~zorba-coders/zorba/feature-json_parser/+merge/89008
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


  1   2   >