Project

General

Profile

« Previous | Next » 

Revision 13137

inputs/NY/validations.-.util.sql: added util.is_castable() wrapper

View differences:

trunk/inputs/NY/validations.-.util.sql
8 8
COMMENT ON FUNCTION ifnull(anyelement, anyelement) IS '
9 9
wrapper that prevents views from getting dropped when the util schema is reinstalled
10 10
';
11

  
12
CREATE OR REPLACE FUNCTION is_castable(value text, ret_type_null anyelement)
13
  RETURNS boolean AS
14
$BODY$
15
SELECT util.is_castable($1, $2)
16
$BODY$
17
  LANGUAGE sql IMMUTABLE
18
  COST 100;
19
COMMENT ON FUNCTION is_castable(text, anyelement) IS '
20
wrapper that prevents views from getting dropped when the util schema is reinstalled
21
';

Also available in: Unified diff