Definition at line 302 of file shp2pgsql-gui.c.
References pg_connection, pgui_logf(), and window::res.
Referenced by pgui_action_import().
304 PGresult *
res = NULL;
305 ExecStatusType status;
310 if ( !
sql )
return 0;
313 status = PQresultStatus(res);
317 if ( ! ( status == PGRES_COMMAND_OK || status == PGRES_TUPLES_OK ) )
320 if ( status == PGRES_NONFATAL_ERROR )
327 snprintf(sql_trunc, 255,
"%s",
sql);
328 pgui_logf(
"Failed SQL begins: \"%s\"", sql_trunc);
static void pgui_logf(const char *fmt,...)
static PGconn * pg_connection