IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 13, 2017, 8:53:30 AM (8 years ago)
Author:
eugene
Message:

add -data_state and -comment-skip as options to chiptool; define new db comparison NOTLKE (NOT LIKE) in psDB code

File:
1 edited

Legend:

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

    r31435 r40290  
    24252425                // used in a where clause...
    24262426                psStringAppend(&query, "%s LIKE '%s'", itemName, item->data.str);
     2427            } else if (item->comment && psStrcasestr(item->comment, "NOTLKE")) {
     2428                // XXX ASC NOTE: we should have a better match for
     2429                // char & varchar columns than this.  LIKE is OK for
     2430                // very large TEXT columns that really shouldn't be
     2431                // used in a where clause...
     2432                psStringAppend(&query, "%s NOT LIKE '%s'", itemName, item->data.str);
    24272433            } else {
    24282434                psStringAppend(&query, "%s %s '%s'", itemName, opStr, item->data.str);
Note: See TracChangeset for help on using the changeset viewer.