From ea01a451ccec55cada68cb45a54519a750fd3d60 Mon Sep 17 00:00:00 2001 From: "Thomas G. Lockhart" Date: Tue, 11 Jun 2002 15:44:38 +0000 Subject: 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. --- src/backend/regex/retest.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/backend/regex/retest.c') diff --git a/src/backend/regex/retest.c b/src/backend/regex/retest.c index eee8ef09ae3..ca5d6c5394a 100644 --- a/src/backend/regex/retest.c +++ b/src/backend/regex/retest.c @@ -1,7 +1,7 @@ /* * a simple regexp debug program * - * $Header: /cvsroot/pgsql/src/backend/regex/Attic/retest.c,v 1.4 1999/07/17 20:17:34 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/regex/Attic/retest.c,v 1.5 2002/06/11 15:41:37 thomas Exp $ */ #include "postgres.h" @@ -22,7 +22,7 @@ main() if (p) *p = '\0'; - sts = pg95_regcomp(&re, buf, 1); + sts = pg_regcomp(&re, buf, 1); printf("regcomp: parses \"%s\" and returns %d\n", buf, sts); for (;;) { @@ -33,7 +33,7 @@ main() if (p) *p = '\0'; - sts = pg95_regexec(&re, buf, 0, 0, 0); + sts = pg_regexec(&re, buf, 0, 0, 0); printf("regexec: returns %d\n", sts); } } -- cgit v1.2.3