Federico Cavalieri has proposed merging lp:~fcavalieri/zorba/bugs into lp:zorba.

Requested reviews:
  Markos Zaharioudakis (markos-za)

For more details, see:
https://code.launchpad.net/~fcavalieri/zorba/bugs/+merge/77162

Fixed bug 859968
-- 
https://code.launchpad.net/~fcavalieri/zorba/bugs/+merge/77162
Your team Zorba Coders is subscribed to branch lp:zorba.
=== modified file 'src/runtime/fnput/fnput_impl.cpp'
--- src/runtime/fnput/fnput_impl.cpp	2011-07-04 19:13:55 +0000
+++ src/runtime/fnput/fnput_impl.cpp	2011-09-27 13:00:23 +0000
@@ -50,6 +50,14 @@
 
   consumeNext(node, theChildren[0].getp(), planState);
 
+  if (node->getNodeKind()==store::StoreConsts::attributeNode)
+  {
+    throw XQUERY_EXCEPTION(
+          err::FOUP0001,
+          ERROR_LOC( loc )
+        );
+  }
+
   consumeNext(uriItem, theChildren[1].getp(), planState);
 
   uriString = uriItem->getStringValue();

=== added file 'test/rbkt/Queries/zorba/updates/upd13.spec'
--- test/rbkt/Queries/zorba/updates/upd13.spec	1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/updates/upd13.spec	2011-09-27 13:00:23 +0000
@@ -0,0 +1,1 @@
+Error: http://www.w3.org/2005/xqt-errors:FOUP0001

=== added file 'test/rbkt/Queries/zorba/updates/upd13.xq'
--- test/rbkt/Queries/zorba/updates/upd13.xq	1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/updates/upd13.xq	2011-09-27 13:00:23 +0000
@@ -0,0 +1,4 @@
+import module namespace doc = "http://www.zorba-xquery.com/modules/store/dynamic/documents";;
+
+put(attribute {"test"}{"test"},"http://www.zorba-xquery.com";);
+doc:document("http://www.zorba-xquery.com";)

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