← Back to team overview

zorba-coders team mailing list archive

[Merge] lp:~zorba-coders/zorba/markos_fots into lp:zorba

 

Markos Zaharioudakis has proposed merging lp:~zorba-coders/zorba/markos_fots into lp:zorba.

Commit message:
throw XQST0048 for groupby clause, as specified by XQuery 3.0


Requested reviews:
  Markos Zaharioudakis (markos-za)

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

throw XQST0048 for groupby clause, as specified by XQuery 3.0
-- 
https://code.launchpad.net/~zorba-coders/zorba/markos_fots/+merge/150687
Your team Zorba Coders is subscribed to branch lp:zorba.
=== modified file 'src/compiler/translator/translator.cpp'
--- src/compiler/translator/translator.cpp	2013-02-09 00:26:52 +0000
+++ src/compiler/translator/translator.cpp	2013-02-26 22:26:21 +0000
@@ -6881,6 +6881,12 @@
     if (spec->get_binding_expr() == NULL)
     {
       ve = lookup_var(varname, loc, true);
+
+      if (all_vars.find(ve) == all_vars.end())
+      {
+        RAISE_ERROR(err::XQST0094, loc,
+        ERROR_PARAMS(ve->get_name()->getStringValue()));
+      }
     }
     else
     {


Follow ups