PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ pgui_validate_connection()

static int pgui_validate_connection ( )
static

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

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

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

Referenced by pgui_action_connection_okay().

Here is the call graph for this function:
Here is the caller graph for this function: