IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 9179


Ignore:
Timestamp:
Oct 3, 2006, 5:16:17 PM (20 years ago)
Author:
jhoblitt
Message:

test that strstr == NULL stead of !strstr()

File:
1 edited

Legend:

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

    r9178 r9179  
    1212 *  @author Joshua Hoblitt
    1313 *
    14  *  @version $Revision: 1.94 $ $Name: not supported by cvs2svn $
    15  *  @date $Date: 2006-10-04 03:11:52 $
     14 *  @version $Revision: 1.95 $ $Name: not supported by cvs2svn $
     15 *  @date $Date: 2006-10-04 03:16:17 $
    1616 *
    1717 *  Copyright (C) 2005-2006  Joshua Hoblitt, University of Hawaii
     
    13181318        // it's just a regular key if it matchs "Key" but not "Primary Key"
    13191319        if (strstr(item->comment, "Key")
    1320                 && (!strstr(item->comment, "Primary Key"))) {
     1320                && (strstr(item->comment, "Primary Key") == NULL)) {
    13211321            psStringAppend(&query, ", KEY(%s)", item->name);
    13221322        } else if (strstr(item->comment, "AUTO_INCREMENT")) {
Note: See TracChangeset for help on using the changeset viewer.