Matthias Brantner has proposed merging 
lp:~zorba-coders/zorba/feature-trace_empty-sequence into lp:zorba.

Commit message:
trace outputs empty sequence

Requested reviews:
  Matthias Brantner (matthias-brantner)
  Chris Hillery (ceejatec)

For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/feature-trace_empty-sequence/+merge/148825
-- 
https://code.launchpad.net/~zorba-coders/zorba/feature-trace_empty-sequence/+merge/148825
Your team Zorba Coders is subscribed to branch lp:zorba.
=== modified file 'ChangeLog'
--- ChangeLog	2013-02-15 06:11:20 +0000
+++ ChangeLog	2013-02-15 21:41:21 +0000
@@ -12,6 +12,7 @@
   * In store API, added ability to specify a stream's originating URI (file)
     for streamable strings and base64Binary.
   * Added millis-to-dateTime() function in datetime module.
+  * fn:trace outputs "empty-sequence()" if the input is the empty-sequence.
   * Addex xqxq:variable-value function.
 
 Optimizations:

=== modified file 'src/runtime/errors_and_diagnostics/errors_and_diagnostics_impl.cpp'
--- src/runtime/errors_and_diagnostics/errors_and_diagnostics_impl.cpp	2012-09-19 21:16:15 +0000
+++ src/runtime/errors_and_diagnostics/errors_and_diagnostics_impl.cpp	2013-02-15 21:41:21 +0000
@@ -144,6 +144,12 @@
     STACK_PUSH(true, state);
   }
 
+  if (state->theIndex == 1)
+  {
+    (*state->theOS) << state->theTagItem->getStringValue() << ": ";
+    (*state->theOS) << "empty-sequence()" << std::endl;
+  }
+
 
   STACK_END(state);
 }

-- 
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

Reply via email to