Changeset: 2a64aa3b01a0 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=2a64aa3b01a0
Modified Files:
        MonetDB5/src/optimizer/opt_mitosis.mx
Branch: Jun2010
Log Message:

checking the value of string arguments only works for constants


diffs (11 lines):

diff -r a43c214266b1 -r 2a64aa3b01a0 MonetDB5/src/optimizer/opt_mitosis.mx
--- a/MonetDB5/src/optimizer/opt_mitosis.mx     Tue Jun 15 10:12:52 2010 +0200
+++ b/MonetDB5/src/optimizer/opt_mitosis.mx     Tue Jun 15 10:38:00 2010 +0200
@@ -74,6 +74,7 @@
                p = getInstrPtr(mb,i);
                if ( getModuleId(p) == sqlRef && getFunctionId(p) == assertRef 
&&
                        p->argc > 2 && getArgType(mb,p,2) == TYPE_str &&
+                       isVarConstant(mb,getArg(p,2)) &&
                        getVarConstant(mb, getArg(p,2)).val.sval != NULL &&
                        strstr(getVarConstant(mb, getArg(p,2)).val.sval, 
"PRIMARY KEY constraint") )
                return 0;
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to