Changeset: f9b43a3b791f for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=f9b43a3b791f
Modified Files:
monetdb5/optimizer/opt_coercion.c
Branch: default
Log Message:
OPTcoercionImplementation(): fixed use of getVarValue(), particularly its
return value
diffs (21 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
@@ -137,7 +137,7 @@ OPTcoercionImplementation(Client cntxt,M
&& isVarConstant(mb,getArg(p,4))
&& getArgType(mb,p,4) == TYPE_int
/* from-scale == to-scale, i.e., no scale change
*/
- && getVarValue(mb, getArg(p,1)) ==
getVarValue(mb, getArg(p,4)) ) ) ){
+ && *(int*) getVarValue(mb, getArg(p,1)) ==
*(int*) getVarValue(mb, getArg(p,4)) ) ) ){
k = getArg(p,0);
coerce[k].pc= i;
coerce[k].totype= TYPE_hge;
@@ -157,7 +157,7 @@ OPTcoercionImplementation(Client cntxt,M
&& isVarConstant(mb,getArg(p,1))
&& getArgType(mb,p,1) == TYPE_int
/* to-scale == 0, i.e., no scale change */
- && getVarValue(mb, getArg(p,1)) == 0 ) ) ) {
+ && *(int*) getVarValue(mb, getArg(p,1)) == 0 ) )
) {
k = getArg(p,0);
coerce[k].pc= i;
coerce[k].totype= TYPE_dbl;
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list