Commit 18f54b13 authored by Sandro Santilli's avatar Sandro Santilli

Further tweak C function deprecation error

This time even with detail and hint !

git-svn-id: http://svn.osgeo.org/postgis/trunk@17292 b70326c6-7e19-0410-871a-916f4a2858ee
parent 9411c16d
Pipeline #50574674 passed with stage
in 23 minutes and 33 seconds
......@@ -41,11 +41,14 @@
PG_FUNCTION_INFO_V1(funcname); \
Datum funcname(PG_FUNCTION_ARGS) \
{ \
ereport(ERROR, \
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED), \
errmsg("C function %s is out of date since PostGIS %s, do you need to update procs ?", \
__func__, \
version))); \
ereport(ERROR, (\
errcode(ERRCODE_FEATURE_NOT_SUPPORTED), \
errmsg("A stored procedure tried to use deprecated C function '%s'", \
__func__), \
errdetail("Library function '%s' was deprecated in PostGIS %s", \
__func__, version), \
errhint("Consider running: SELECT postgis_extensions_upgrade()") \
)); \
PG_RETURN_POINTER(NULL); \
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment