Changeset: f61cd4ed3473 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/f61cd4ed3473
Modified Files:
        monetdb5/optimizer/opt_wlc.c
Branch: Jul2021
Log Message:

Look at correct argument for sql.claim.


diffs (12 lines):

diff --git a/monetdb5/optimizer/opt_wlc.c b/monetdb5/optimizer/opt_wlc.c
--- a/monetdb5/optimizer/opt_wlc.c
+++ b/monetdb5/optimizer/opt_wlc.c
@@ -118,7 +118,7 @@ OPTwlcImplementation(Client cntxt, MalBl
                          getFunctionId(p) == claimRef  ||
                          getFunctionId(p) == deleteRef  ||
                          getFunctionId(p) == clear_tableRef ) &&
-                         strcmp( getVarConstant(mb,getArg(p,2)).val.sval, 
"tmp") != 0 ){
+                       strcmp( getVarConstant(mb,getArg(p,2+(getFunctionId(p) 
== claimRef))).val.sval, "tmp") != 0 ){
                                assert( def);// should always be there, 
temporary tables are always ignored
                                setFunctionId(def,actionRef);
                                if((q= copyInstruction(p)) == NULL) {
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to