if we need to transform we copy into temp table instead of main table first
Definition at line 1493 of file shp2pgsql-core.c.
1494{
1495
1497 char *ret;
1500
1501
1502
1504 {
1506
1510 }
1511 else {
1513 {
1515 }
1516
1518 }
1519
1520
1524
1525 *strheader = ret;
1527 }
1528 else
1529 {
1530
1531 snprintf(state->
message,
SHPLOADERMSGLEN,
_(
"Internal error: attempt to generate a COPY statement for data that hasn't been requested in COPY format"));
1532
1534 }
1535}
stringbuffer_t * stringbuffer_create(void)
Allocate a new stringbuffer_t.
void stringbuffer_clear(stringbuffer_t *s)
Reset the stringbuffer_t.
int stringbuffer_aprintf(stringbuffer_t *s, const char *fmt,...)
Appends a formatted string to the current string buffer, using the format and argument list provided.
const char * stringbuffer_getstring(stringbuffer_t *s)
Returns a reference to the internal string being managed by the stringbuffer.
void stringbuffer_destroy(stringbuffer_t *s)
Free the stringbuffer_t and all memory managed within it.
char message[SHPLOADERMSGLEN]
References _, shp_loader_state::col_names, shp_loader_state::config, shp_loader_config::dump_format, shp_loader_state::from_srid, malloc(), shp_loader_state::message, shp_loader_config::schema, SHPLOADERERR, SHPLOADERMSGLEN, SHPLOADEROK, stringbuffer_aprintf(), stringbuffer_clear(), stringbuffer_create(), stringbuffer_destroy(), stringbuffer_getstring(), shp_loader_config::table, and shp_loader_state::to_srid.
Referenced by main(), and pgui_action_import().