IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 9985 for trunk/psLib


Ignore:
Timestamp:
Nov 14, 2006, 2:54:22 PM (20 years ago)
Author:
jhoblitt
Message:

add support for "unique" fields

File:
1 edited

Legend:

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

    r9751 r9985  
    1212 *  @author Joshua Hoblitt
    1313 *
    14  *  @version $Revision: 1.109 $ $Name: not supported by cvs2svn $
    15  *  @date $Date: 2006-10-27 00:07:55 $
     14 *  @version $Revision: 1.110 $ $Name: not supported by cvs2svn $
     15 *  @date $Date: 2006-11-15 00:54:22 $
    1616 *
    1717 *  Copyright (C) 2005-2006  Joshua Hoblitt, University of Hawaii
     
    12741274        }
    12751275        if (strstr(item->comment, "AUTO_INCREMENT")) {
    1276             psStringAppend(&query, "%s", " AUTO_INCREMENT");
     1276            psStringAppend(&query, " %s", "AUTO_INCREMENT");
     1277        }
     1278        if (strstr(item->comment, "Unique")) {
     1279            psStringAppend(&query, " %s", "UNIQUE");
    12771280        }
    12781281
Note: See TracChangeset for help on using the changeset viewer.