PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ pgui_validate_connection()

static int pgui_validate_connection ( )
static

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

2476 {
2477  int i;
2478 
2479  if (conn->port && strlen(conn->port))
2480  {
2481  for (i = 0; i < strlen(conn->port); i++)
2482  {
2483  if (!isdigit(conn->port[i]))
2484  {
2485  pgui_seterr(_("The connection port must be numeric!"));
2486  return 0;
2487  }
2488  }
2489  }
2490 
2491  return 1;
2492 }
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: