Project

General

Profile

« Previous | Next » 

Revision 12581

bugfix: schemas/util.sql: mk_keys_func(regtype, util.col_cast[]): use `CREATE FUNCTION` instead of `CREATE OR REPLACE FUNCTION` so that the function is only created if it does not exist, to avoid overwriting a custom keys() function

View differences:

trunk/schemas/util.sql
2102 2102
CREATE TYPE $$||util.prefixed_name($3||'_', $1)||$$ AS
2103 2103
($$||util.mk_typed_cols_list($2)||$$);
2104 2104

  
2105
CREATE OR REPLACE FUNCTION $$||util.qual_name(util.schema($1), $3)||$$(value $$
2105
CREATE FUNCTION $$||util.qual_name(util.schema($1), $3)||$$(value $$
2106 2106
||util.qual_name($1)||$$)
2107 2107
  RETURNS $$||util.prefixed_name($3||'_', $1)||$$ AS
2108 2108
$BODY1$

Also available in: Unified diff