Schema
Owner
postgres
Descriptions
There is no description for function _postgis_deprecate
Options
Option | Value |
---|---|
Returns |
void |
Language |
|
Parameters |
oldname text newname text version text |
Definition
CREATE OR REPLACE FUNCTION public._postgis_deprecate (
oldname text,
newname text,
version text
)
RETURNS void AS
$span$
DECLARE
curver_text text;
BEGIN
--
-- Raises a NOTICE if it was deprecated in this version,
-- a WARNING if in a previous version (only up to minor version checked)
--
curver_text := '2.3.7';
IF split_part(curver_text,'.',1)::int > split_part(version,'.',1)::int OR
( split_part(curver_text,'.',1) = split_part(version,'.',1) AND
split_part(curver_text,'.',2) != split_part(version,'.',2) )
THEN
RAISE WARNING '% signature was deprecated in %. Please use %', oldname, version, newname;
ELSE
RAISE DEBUG '% signature was deprecated in %. Please use %', oldname, version, newname;
END IF;
END;
$span$
LANGUAGE 'plpgsql'
IMMUTABLE
RETURNS NULL ON NULL INPUT
SECURITY INVOKER
COST 100;
This file was generated with SQL Manager for PostgreSQL (www.pgsqlmanager.com) at 07/12/2018 13:23 |