PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ postgis_libjson_version()

Datum postgis_libjson_version ( PG_FUNCTION_ARGS  )

Definition at line 69 of file lwgeom_in_geojson.c.

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)

References cstring2text().

Here is the call graph for this function: