PostGIS  2.1.10dev-r@@SVN_REVISION@@
static int pgui_validate_connection ( )
static

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

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

Referenced by pgui_action_connection_okay().

2465 {
2466  int i;
2467 
2468  if (conn->port && strlen(conn->port))
2469  {
2470  for (i = 0; i < strlen(conn->port); i++)
2471  {
2472  if (!isdigit(conn->port[i]))
2473  {
2474  pgui_seterr(_("The connection port must be numeric!"));
2475  return 0;
2476  }
2477  }
2478  }
2479 
2480  return 1;
2481 }
#define _(String)
Definition: shpcommon.h:23
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: