Definition at line 302 of file shp2pgsql-gui.c.
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 PGconn * pg_connection
static void pgui_logf(const char *fmt,...)
References pg_connection, pgui_logf(), window::res, and rtgdalraster::sql.
Referenced by pgui_action_import().