← Back to team overview

zorba-coders team mailing list archive

[Merge] lp:~zorba-coders/zorba/bug-1041411 into lp:zorba

 

Ghislain Fourny has proposed merging lp:~zorba-coders/zorba/bug-1041411 into lp:zorba.

Requested reviews:
  Matthias Brantner (matthias-brantner)
  Chris Hillery (ceejatec)
Related bugs:
  Bug #1041411 in Zorba: "false/true/null too special in JSONiq"
  https://bugs.launchpad.net/zorba/+bug/1041411

For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/bug-1041411/+merge/122265

Fixed bug 1041411.
-- 
https://code.launchpad.net/~zorba-coders/zorba/bug-1041411/+merge/122265
Your team Zorba Coders is subscribed to branch lp:zorba.
=== modified file 'src/compiler/translator/translator.cpp'
--- src/compiler/translator/translator.cpp	2012-08-30 13:45:43 +0000
+++ src/compiler/translator/translator.cpp	2012-08-31 12:46:32 +0000
@@ -8666,7 +8666,7 @@
           {
             const rchandle<QName> lQName = lNodetest->getQName();
 
-            if (lQName && lQName->get_namespace() == "")
+            if (lQName && lQName->get_prefix() == "")
             {
               const zstring& lLocal = lQName->get_localname();
 

=== added file 'test/rbkt/Queries/zorba/jsoniq/prefixed_true.spec'
--- test/rbkt/Queries/zorba/jsoniq/prefixed_true.spec	1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/jsoniq/prefixed_true.spec	2012-08-31 12:46:32 +0000
@@ -0,0 +1,2 @@
+Serialization: method=json
+Error: http://www.w3.org/2005/xqt-errors:XPDY0002

=== added file 'test/rbkt/Queries/zorba/jsoniq/prefixed_true.xq'
--- test/rbkt/Queries/zorba/jsoniq/prefixed_true.xq	1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/jsoniq/prefixed_true.xq	2012-08-31 12:46:32 +0000
@@ -0,0 +1,1 @@
+xs:true


Follow ups