Changeset 17838 for trunk/psLib/src/db/psDB.c
- Timestamp:
- May 28, 2008, 4:35:34 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/db/psDB.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/db/psDB.c
r17837 r17838 23 23 * 4.1.2 or newer is required. 24 24 * 25 * $Id: psDB.c,v 1.15 3 2008-05-29 02:26:51 billsExp $25 * $Id: psDB.c,v 1.154 2008-05-29 02:35:34 jhoblitt Exp $ 26 26 */ 27 27 … … 1701 1701 while ((item = psListGetAndIncrement(cursor))) { 1702 1702 // don't compile a regex unless we have too 1703 if (psStrcasestr(item->comment, "U NIQUE") == NULL) {1703 if (psStrcasestr(item->comment, "UINDEX") == NULL) { 1704 1704 continue; 1705 1705 } … … 1709 1709 int errbuf_size = 1024; 1710 1710 char errbuf[errbuf_size]; 1711 char *pattern = "U NIQUE[:space:]*[(]([^)]*)";1711 char *pattern = "UINDEX[:space:]*[(]([^)]*)"; 1712 1712 1713 1713 int status = regcomp(&myregex, pattern, REG_EXTENDED|REG_ICASE); … … 1732 1732 regfree(&myregex); 1733 1733 1734 // sub string 1: u nique(.*)1734 // sub string 1: uindex(.*) 1735 1735 size_t matchStart = (size_t)mymatch[1].rm_so; 1736 1736 size_t matchEnd = (size_t)mymatch[1].rm_eo;
Note:
See TracChangeset
for help on using the changeset viewer.
