Definition at line 461 of file shp2pgsql-gui.c.
References _, free(), pg_connection, pgui_logf(), pgui_raise_error_dialogue(), pgui_sanitize_connection_string(), ShpDumperGetConnectionStringFromConn(), and valid_connection.
Referenced by pgui_action_connection_okay(), pgui_action_export(), pgui_action_import(), and pgui_action_open_table_dialog().
463 char *connection_string = NULL;
464 char *connection_sanitized = NULL;
473 connection_sanitized = strdup(connection_string);
475 pgui_logf(
"Connecting: %s", connection_sanitized);
476 free(connection_sanitized);
482 free(connection_string);
490 free(connection_string);
static void pgui_logf(const char *fmt,...)
static SHPCONNECTIONCONFIG * conn
char * ShpDumperGetConnectionStringFromConn(SHPCONNECTIONCONFIG *conn)
static void pgui_sanitize_connection_string(char *connection_string)
static int valid_connection
static void pgui_raise_error_dialogue(void)
static PGconn * pg_connection