Definition at line 1153 of file shp2pgsql-gui.c.
1155 ExecStatusType status;
1158 char *pg_fieldname, *pg_fieldtype;
1162 status = PQresultStatus(
result);
1163 if (status == PGRES_TUPLES_OK)
1165 ntuples = PQntuples(
result);
1167 switch (config->
opt)
1191 pgui_seterr(
_(
"ERROR: Destination table %s.%s could not be found for appending"), config->
schema, config->
table);
1210 for (j = 0; j < ntuples; j++)
1212 pg_fieldname = PQgetvalue(
result, j, PQfnumber(
result,
"field"));
1213 pg_fieldtype = PQgetvalue(
result, j, PQfnumber(
result,
"type"));
1222 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);
1231 pgui_logf(
_(
"Warning: DBF Field '%s' within file %s could not be matched to a column within table %s.%s"),
1245 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 pgui_seterr(const char *fmt,...)
static int validate_shape_column_against_pg_column(int dbf_fieldtype, char *pg_fieldtype)
static void pgui_logf(const char *fmt,...)
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().