Changeset: 79c86ec05b2e for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=79c86ec05b2e
Modified Files:
monetdb5/optimizer/opt_coercion.c
Branch: default
Log Message:
Typo and additional information for debugging
diffs (33 lines):
diff --git a/monetdb5/optimizer/opt_coercion.c
b/monetdb5/optimizer/opt_coercion.c
--- a/monetdb5/optimizer/opt_coercion.c
+++ b/monetdb5/optimizer/opt_coercion.c
@@ -75,6 +75,7 @@ coercionOptimizerCalcStep(Client cntxt,
{
#ifdef _DEBUG_COERCION_
mnstr_printf(cntxt->fdout,"#remove upcast on first argument
%d\n", getArg(p,1));
+ printInstruction(cntxt->fdout, mb, 0, p, LIST_MAL_ALL);
#endif
varid = getArg(p,1);
getArg(p,1) = coerce[getArg(p,1)].src;
@@ -82,15 +83,20 @@ coercionOptimizerCalcStep(Client cntxt,
p->argv[1] = varid;
}
if ( b == r && coerce[getArg(p,2)].src && coerce[getArg(p,2)].fromtype
< r )
+ {
#ifdef _DEBUG_COERCION_
mnstr_printf(cntxt->fdout,"#remove upcast on second argument
%d\n", getArg(p,2));
+ printInstruction(cntxt->fdout, mb, 0, p, LIST_MAL_ALL);
#endif
- {
varid = getArg(p,2);
getArg(p,2) = coerce[getArg(p,2)].src;
if ( chkInstruction(NULL, cntxt->nspace, mb, p))
p->argv[2] = varid;
}
+#ifdef _DEBUG_COERCION_
+ mnstr_printf(cntxt->fdout,"#final instruction\n");
+ printInstruction(cntxt->fdout, mb, 0, p, LIST_MAL_ALL);
+#endif
return;
}
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list