IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 17838 for trunk/psLib/src/db


Ignore:
Timestamp:
May 28, 2008, 4:35:34 PM (18 years ago)
Author:
jhoblitt
Message:

rename unique to unindex

File:
1 edited

Legend:

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

    r17837 r17838  
    2323 * 4.1.2 or newer is required.
    2424 *
    25  * $Id: psDB.c,v 1.153 2008-05-29 02:26:51 bills Exp $
     25 * $Id: psDB.c,v 1.154 2008-05-29 02:35:34 jhoblitt Exp $
    2626 */
    2727
     
    17011701    while ((item = psListGetAndIncrement(cursor))) {
    17021702        // don't compile a regex unless we have too
    1703         if (psStrcasestr(item->comment, "UNIQUE") == NULL) {
     1703        if (psStrcasestr(item->comment, "UINDEX") == NULL) {
    17041704            continue;
    17051705        }
     
    17091709        int             errbuf_size = 1024;
    17101710        char            errbuf[errbuf_size];
    1711         char            *pattern = "UNIQUE[:space:]*[(]([^)]*)";
     1711        char            *pattern = "UINDEX[:space:]*[(]([^)]*)";
    17121712
    17131713        int status = regcomp(&myregex, pattern, REG_EXTENDED|REG_ICASE);
     
    17321732        regfree(&myregex);
    17331733
    1734         // sub string 1: unique(.*)
     1734        // sub string 1: uindex(.*)
    17351735        size_t matchStart = (size_t)mymatch[1].rm_so;
    17361736        size_t matchEnd   = (size_t)mymatch[1].rm_eo;
Note: See TracChangeset for help on using the changeset viewer.