Definition at line 340 of file shp2pgsql-gui.c.
References pg_connection, pgui_logf(), and window::res.
Referenced by pgui_action_import().
342 PGresult *
res = NULL;
343 ExecStatusType status;
348 if ( !
sql )
return 0;
351 status = PQresultStatus(res);
355 if ( status != PGRES_COPY_IN )
358 snprintf(sql_trunc, 255,
"%s",
sql);
359 pgui_logf(
"Failed SQL begins: \"%s\"", sql_trunc);
static void pgui_logf(const char *fmt,...)
static PGconn * pg_connection