Changeset: b572e663efb2 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=b572e663efb2
Modified Files:
MonetDB5/src/optimizer/opt_mitosis.mx
Branch: default
Log Message:
use correct argument (2 iso. 1) when testing eligibility of mitosis for PK
diffs (14 lines):
diff -r 89c9bd2aec13 -r b572e663efb2 MonetDB5/src/optimizer/opt_mitosis.mx
--- a/MonetDB5/src/optimizer/opt_mitosis.mx Sun Jun 13 16:21:12 2010 +0200
+++ b/MonetDB5/src/optimizer/opt_mitosis.mx Sun Jun 13 20:58:20 2010 +0200
@@ -73,8 +73,8 @@
for (i=1; i< mb->stop; i++){
p = getInstrPtr(mb,i);
if ( getModuleId(p) == sqlRef && getFunctionId(p) == assertRef
&&
- getArgType(mb,p,1) == TYPE_str &&
- strstr(getVarConstant(mb, getArg(p,1)).val.sval,
"PRIMARY KEY constraint") )
+ getArgType(mb,p,2) == TYPE_str &&
+ strstr(getVarConstant(mb, getArg(p,2)).val.sval,
"PRIMARY KEY constraint") )
return 0;
}
return 1;
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list