PostGIS  3.7.0dev-r@@SVN_REVISION@@

◆ pgui_copy_end()

static int pgui_copy_end ( const int  rollback)
static

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

402 {
403  char *errmsg = NULL;
404 
405  /* We need a connection to do anything. */
406  if ( ! pg_connection ) return 0;
407 
408  if ( rollback ) errmsg = "Roll back the copy.";
409 
410  /* Did something unexpected happen? */
411  if ( PQputCopyEnd(pg_connection, errmsg) < 0 )
412  {
413  /* Log errors and return failure. */
414  pgui_logf("Failed in pgui_copy_end(): %s", PQerrorMessage(pg_connection));
415  return 0;
416  }
417 
418  return 1;
419 }
static void static void static void pgui_logf(const char *fmt,...) __attribute__((format(printf
static PGconn * pg_connection

References pg_connection, and pgui_logf().

Referenced by pgui_action_import().

Here is the call graph for this function:
Here is the caller graph for this function: