1153 ExecStatusType status;
1156 char *pg_fieldname, *pg_fieldtype;
1160 status = PQresultStatus(result);
1161 if (status == PGRES_TUPLES_OK)
1163 ntuples = PQntuples(result);
1165 switch (config->
opt)
1189 pgui_seterr(
_(
"ERROR: Destination table %s.%s could not be found for appending"), config->
schema, config->
table);
1208 for (j = 0; j < ntuples; j++)
1210 pg_fieldname = PQgetvalue(result, j, PQfnumber(result,
"field"));
1211 pg_fieldtype = PQgetvalue(result, j, PQfnumber(result,
"type"));
1220 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);
1229 pgui_logf(
_(
"Warning: DBF Field '%s' within file %s could not be matched to a column within table %s.%s"),
1243 pgui_seterr(
_(
"ERROR: unable to process validation response from remote server"));
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,...)