PostGIS  3.7.0dev-r@@SVN_REVISION@@

◆ postgis_lib_revision()

Datum postgis_lib_revision ( PG_FUNCTION_ARGS  )

Definition at line 198 of file lwgeom_functions_basic.c.

199 {
200  static char *rev = xstr(POSTGIS_REVISION);
201  char ver[32];
202  if (rev && rev[0] != '\0')
203  {
204  snprintf(ver, 32, "%s", rev);
205  ver[31] = '\0';
206  PG_RETURN_TEXT_P(cstring_to_text(ver));
207  }
208  else PG_RETURN_NULL();
209 }
#define xstr(s)

References xstr.