diff options
author | Thomas G. Lockhart <lockhart@fourpalms.org> | 2002-06-11 15:44:38 +0000 |
---|---|---|
committer | Thomas G. Lockhart <lockhart@fourpalms.org> | 2002-06-11 15:44:38 +0000 |
commit | ea01a451ccec55cada68cb45a54519a750fd3d60 (patch) | |
tree | e6f38191dbf7383eaf35f41009b37a13b2ce1fe7 /src/backend/regex/regexec.c | |
parent | 090dd22de67e6a7e50cfc3efb92a8472fa8750ba (diff) | |
download | postgresql-ea01a451ccec55cada68cb45a54519a750fd3d60.tar.gz postgresql-ea01a451ccec55cada68cb45a54519a750fd3d60.zip |
Implement SQL99 OVERLAY(). Allows substitution of a substring in a string.
Implement SQL99 SIMILAR TO as a synonym for our existing operator "~".
Implement SQL99 regular expression SUBSTRING(string FROM pat FOR escape).
Extend the definition to make the FOR clause optional.
Define textregexsubstr() to actually implement this feature.
Update the regression test to include these new string features.
All tests pass.
Rename the regular expression support routines from "pg95_xxx" to "pg_xxx".
Define CREATE CHARACTER SET in the parser per SQL99. No implementation yet.
Diffstat (limited to 'src/backend/regex/regexec.c')
-rw-r--r-- | src/backend/regex/regexec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/regex/regexec.c b/src/backend/regex/regexec.c index 47677304413..06459ef1dbc 100644 --- a/src/backend/regex/regexec.c +++ b/src/backend/regex/regexec.c @@ -149,8 +149,8 @@ do { \ * when choosing which matcher to call. */ int /* 0 success, REG_NOMATCH failure */ -pg95_regexec(const regex_t *preg, const char *string, size_t nmatch, - regmatch_t *pmatch, int eflags) +pg_regexec(const regex_t *preg, const char *string, size_t nmatch, + regmatch_t *pmatch, int eflags) { struct re_guts *g = preg->re_g; |