Changeset: f0f9c281bbc6 for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=f0f9c281bbc6 Modified Files: monetdb5/optimizer/opt_coercion.c Branch: default Log Message:
OPTcoercionImplementation(): fixing changeset 9779801a1482: do not remove scale-changing dbl-casts diffs (12 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 @@ -135,7 +135,7 @@ OPTcoercionImplementation(Client cntxt,M coerce[k].scale= getVarConstant(mb,getArg(p,4)).val.ival; } #endif - if ( getModuleId(p) == batcalcRef && getFunctionId(p) == dblRef && p->retc == 1 && ((p->argc == 3 && isVarConstant(mb,getArg(p,1))) || p->argc ==2) ){ + if ( getModuleId(p) == batcalcRef && getFunctionId(p) == dblRef && p->retc == 1 && p->argc == 2 ){ k = getArg(p,0); coerce[k].pc= i; coerce[k].totype= TYPE_dbl; _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list