PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ pgui_validate_connection()

static int pgui_validate_connection ( )
static

Definition at line 2470 of file shp2pgsql-gui.c.

References _, pgui_seterr(), and shp_connection_state::port.

Referenced by pgui_action_connection_okay().

2471 {
2472  int i;
2473 
2474  if (conn->port && strlen(conn->port))
2475  {
2476  for (i = 0; i < strlen(conn->port); i++)
2477  {
2478  if (!isdigit(conn->port[i]))
2479  {
2480  pgui_seterr(_("The connection port must be numeric!"));
2481  return 0;
2482  }
2483  }
2484  }
2485 
2486  return 1;
2487 }
#define _(String)
Definition: shpcommon.h:24
static SHPCONNECTIONCONFIG * conn
static void pgui_seterr(const char *fmt,...)
Here is the call graph for this function:
Here is the caller graph for this function: