IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 23915


Ignore:
Timestamp:
Apr 17, 2009, 4:20:59 PM (17 years ago)
Author:
eugene
Message:

a multi results in an OR set for LIKE as well as == eg: (A LIKE foo OR B LIKE bar)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/db/psDB.c

    r23507 r23915  
    21572157
    21582158            // scan through the list and change the logicalOp joining
    2159             // conditionals together to "OR" if a comment of "==" is found
     2159            // conditionals together to "OR" if a comment of "==" or "LIKE" is found
    21602160            psListIterator *mCursor = psListIteratorAlloc(item->data.list, 0,
    21612161                                      false);
     
    21632163            while ((mItem = psListGetAndIncrement(mCursor))) {
    21642164                if (mItem->comment && psStrcasestr(mItem->comment, "==")) {
     2165                    logicalOp = "OR";
     2166                    break;
     2167                }
     2168                if (mItem->comment && psStrcasestr(mItem->comment, "LIKE")) {
    21652169                    logicalOp = "OR";
    21662170                    break;
Note: See TracChangeset for help on using the changeset viewer.