Changeset: 7a039ee491e9 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=7a039ee491e9
Modified Files:
        monetdb5/extras/jaql/jaqlgencode.c
Branch: Jul2012
Log Message:

dumpin: fix in-queries referencing a variable


diffs (18 lines):

diff --git a/monetdb5/extras/jaql/jaqlgencode.c 
b/monetdb5/extras/jaql/jaqlgencode.c
--- a/monetdb5/extras/jaql/jaqlgencode.c
+++ b/monetdb5/extras/jaql/jaqlgencode.c
@@ -547,6 +547,14 @@ dumpin(jc *j, Client cntxt, MalBlkPtr mb
                                a = -1;
                                assert(0);
                        }
+                       /* we perform a join against jX lateron, so reverse */
+                       q = newInstruction(mb, ASSIGNsymbol);
+                       setModuleId(q, batRef);
+                       setFunctionId(q, reverseRef);
+                       q = pushReturn(mb, q, newTmpVariable(mb, TYPE_any));
+                       q = pushArgument(mb, q, a);
+                       a = getArg(q, 0);
+                       pushInstruction(mb, q);
 
                        /* we will create 4 BATs, one for kind matches (t, f, 
n),
                         * and one for num, dbl and str each */
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to