PostGIS  2.5.1dev-r@@SVN_REVISION@@

◆ postgis_libjson_version()

Datum postgis_libjson_version ( PG_FUNCTION_ARGS  )

Definition at line 69 of file lwgeom_in_geojson.c.

References cstring2text(), geom_from_geojson(), and PG_FUNCTION_INFO_V1().

Referenced by text2cstring().

70 {
71 #ifndef HAVE_LIBJSON
72  PG_RETURN_NULL();
73 #else /* HAVE_LIBJSON */
74 # ifdef JSON_C_VERSION
75  const char *ver = json_c_version();
76 # else
77  const char *ver = "UNKNOWN";
78 # endif
79  text *result = cstring2text(ver);
80  PG_RETURN_POINTER(result);
81 #endif
82 }
static text * cstring2text(const char *cstring)
Here is the call graph for this function:
Here is the caller graph for this function: