gooderp18绿色标准版
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
668B

  1. /* contrib/citext/citext--1.3--1.4.sql */
  2. -- complain if script is sourced in psql, rather than via ALTER EXTENSION
  3. \echo Use "ALTER EXTENSION citext UPDATE TO '1.4'" to load this file. \quit
  4. CREATE FUNCTION regexp_match( citext, citext ) RETURNS TEXT[] AS $$
  5. SELECT pg_catalog.regexp_match( $1::pg_catalog.text, $2::pg_catalog.text, 'i' );
  6. $$ LANGUAGE SQL IMMUTABLE STRICT PARALLEL SAFE;
  7. CREATE FUNCTION regexp_match( citext, citext, text ) RETURNS TEXT[] AS $$
  8. SELECT pg_catalog.regexp_match( $1::pg_catalog.text, $2::pg_catalog.text, CASE WHEN pg_catalog.strpos($3, 'c') = 0 THEN $3 || 'i' ELSE $3 END );
  9. $$ LANGUAGE SQL IMMUTABLE STRICT PARALLEL SAFE;
上海开阖软件有限公司 沪ICP备12045867号-1