mirror of
https://github.com/postgres/postgres.git
synced 2025-08-30 06:01:21 +03:00
Back-patch fix for extraction of fixed prefixes from regular expressions.
Back-patch of commits628cbb50ba
andc6aae3042b
. This has been broken since 7.3, so back-patch to all supported branches.
This commit is contained in:
@@ -156,6 +156,9 @@ typedef struct
|
||||
/* two specials for debugging and testing */
|
||||
#define REG_ATOI 101 /* convert error-code name to number */
|
||||
#define REG_ITOA 102 /* convert error-code number to name */
|
||||
/* non-error result codes for pg_regprefix */
|
||||
#define REG_PREFIX (-1) /* identified a common prefix */
|
||||
#define REG_EXACT (-2) /* identified an exact match */
|
||||
|
||||
|
||||
|
||||
@@ -164,6 +167,7 @@ typedef struct
|
||||
*/
|
||||
extern int pg_regcomp(regex_t *, const pg_wchar *, size_t, int, Oid);
|
||||
extern int pg_regexec(regex_t *, const pg_wchar *, size_t, size_t, rm_detail_t *, size_t, regmatch_t[], int);
|
||||
extern int pg_regprefix(regex_t *, pg_wchar **, size_t *);
|
||||
extern void pg_regfree(regex_t *);
|
||||
extern size_t pg_regerror(int, const regex_t *, char *, size_t);
|
||||
extern void pg_set_regex_collation(Oid collation);
|
||||
|
Reference in New Issue
Block a user