Ticket #1630: does_not_contain.patch
File does_not_contain.patch, 1.6 KB (added by , 18 years ago) |
---|
-
mythmusic/mythmusic/smartplaylist.cpp
57 57 58 58 static SmartPLOperator SmartPLOperators[] = 59 59 { 60 { "is equal to", 1, false, true }, 61 { "is not equal to", 1, false, true }, 62 { "is greater than", 1, false, false }, 63 { "is less than", 1, false, false }, 64 { "starts with", 1, true, false }, 65 { "ends with", 1, true, false }, 66 { "contains", 1, true, false }, 67 { "is between", 2, false, false }, 60 { "is equal to", 1, false, true }, 61 { "is not equal to", 1, false, true }, 62 { "is greater than", 1, false, false }, 63 { "is less than", 1, false, false }, 64 { "starts with", 1, true, false }, 65 { "ends with", 1, true, false }, 66 { "contains", 1, true, false }, 67 { "does not contain", 1, true, false }, 68 { "is between", 2, false, false }, 68 69 }; 69 70 70 71 static int SmartPLOperatorsCount = sizeof(SmartPLOperators) / sizeof(SmartPLOperators[0]); … … 199 200 { 200 201 result = result + " LIKE " + formattedFieldValue(QString("%") + value1 + "%"); 201 202 } 203 else if (Operator->name == "does not contain") 204 { 205 result = result + " NOT LIKE " + formattedFieldValue(QString("%") + value1 + "%"); 206 } 202 207 else if (Operator->name == "is between") 203 208 { 204 209 result = result + " BETWEEN " + formattedFieldValue(value1) +