Definition at line 1155 of file shp2pgsql-gui.c.
1157 ExecStatusType status;
1160 char *pg_fieldname, *pg_fieldtype;
1164 status = PQresultStatus(
result);
1165 if (status == PGRES_TUPLES_OK)
1167 ntuples = PQntuples(
result);
1169 switch (config->
opt)
1193 pgui_seterr(
_(
"ERROR: Destination table %s.%s could not be found for appending"), config->
schema, config->
table);
1212 for (j = 0; j < ntuples; j++)
1214 pg_fieldname = PQgetvalue(
result, j, PQfnumber(
result,
"field"));
1215 pg_fieldtype = PQgetvalue(
result, j, PQfnumber(
result,
"type"));
1224 pgui_logf(
_(
"Warning: DBF Field '%s' is not compatible with PostgreSQL column '%s' in %s.%s"), state->
field_names[i], pg_fieldname, config->
schema, config->
table);
1233 pgui_logf(
_(
"Warning: DBF Field '%s' within file %s could not be matched to a column within table %s.%s"),
1247 pgui_seterr(
_(
"ERROR: unable to process validation response from remote server"));
char result[OUT_DOUBLE_BUFFER_SIZE]
void ShpLoaderDestroy(SHPLOADERSTATE *state)
int ShpLoaderOpenShape(SHPLOADERSTATE *state)
SHPLOADERSTATE * ShpLoaderCreate(SHPLOADERCONFIG *config)
static void static void static void static void pgui_seterr(const char *fmt,...) __attribute__((format(printf
static int validate_shape_column_against_pg_column(int dbf_fieldtype, char *pg_fieldtype)
static void static void static void pgui_logf(const char *fmt,...) __attribute__((format(printf
References _, shp_loader_state::field_names, shp_loader_state::num_fields, shp_loader_config::opt, pgui_logf(), pgui_seterr(), result, shp_loader_config::schema, shp_loader_config::shp_file, ShpLoaderCreate(), ShpLoaderDestroy(), SHPLOADERERR, SHPLOADEROK, ShpLoaderOpenShape(), SHPLOADERWARN, shp_loader_config::table, shp_loader_state::types, and validate_shape_column_against_pg_column().
Referenced by pgui_action_import().