Project

General

Profile

« Previous | Next » 

Revision 12362

bugfix: schemas/util.sql: truncated_prefixed_name_regexp(): need to match the entire string, so that the regexp can be used with util.replace_suffix()

View differences:

trunk/schemas/util.sql
3087 3087
    LANGUAGE sql IMMUTABLE
3088 3088
    AS $_$
3089 3089
SELECT '^(.*)'||util._if(util.name_was_truncated($1, $2),
3090
util.regexp_quote(util.rtrim_n($1, $2)), util.regexp_quote($1)||'$')
3090
util.regexp_quote(util.rtrim_n($1, $2))||'.*', util.regexp_quote($1)) ||'$'
3091 3091
$_$;
3092 3092

  
3093 3093

  

Also available in: Unified diff