Changeset: 3bd0e56a5e4d for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=3bd0e56a5e4d
Modified Files:
monetdb5/optimizer/opt_json.c
Branch: default
Log Message:
Use addArgument in the situation where you have constructed a private
instruction
diffs (25 lines):
diff --git a/monetdb5/optimizer/opt_json.c b/monetdb5/optimizer/opt_json.c
--- a/monetdb5/optimizer/opt_json.c
+++ b/monetdb5/optimizer/opt_json.c
@@ -41,9 +41,9 @@ OPTjsonImplementation(Client cntxt, MalB
p = old[i];
if( getModuleId(p) == sqlRef && getFunctionId(p) ==
affectedRowsRef) {
q = newInstruction(0, jsonRef, resultSetRef);
- q = pushArgument(mb, q, bu);
- q = pushArgument(mb, q, br);
- q = pushArgument(mb, q, bj);
+ q = addArgument(mb, q, bu);
+ q = addArgument(mb, q, br);
+ q = addArgument(mb, q, bj);
j = getArg(q,0);
p= getInstrPtr(mb,0);
setDestVar(q, newTmpVariable(mb, TYPE_str));
@@ -51,7 +51,7 @@ OPTjsonImplementation(Client cntxt, MalB
q = newInstruction(0, NULL, NULL);
q->barrier = RETURNsymbol;
getArg(q,0)= getArg(p,0);
- pushArgument(mb,q,j);
+ addArgument(mb,q,j);
pushInstruction(mb,q);
actions++;
continue;
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list