Changeset: 1b1fd27ef6a5 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=1b1fd27ef6a5
Modified Files:
monetdb5/optimizer/opt_coercion.c
Branch: default
Log Message:
OPTcoercionImplementation(): extra sanity checks to ensure correctness
diffs (17 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
@@ -129,8 +129,12 @@ OPTcoercionImplementation(Client cntxt,M
&& getFunctionId(p) == hgeRef
&& p->retc == 1
&& p->argc == 5
+ && isVarConstant(mb,getArg(p,1))
+ && getArgType(mb,p,1) == TYPE_int
+ && isVarConstant(mb,getArg(p,3))
+ && getArgType(mb,p,3) == TYPE_int
&& isVarConstant(mb,getArg(p,4))
- && isVarConstant(mb,getArg(p,3)) ){
+ && getArgType(mb,p,4) == TYPE_int ){
k = getArg(p,0);
coerce[k].pc= i;
coerce[k].totype= TYPE_hge;
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list