if we need to transform we copy into temp table instead of main table first
Definition at line 1492 of file shp2pgsql-core.c.
1493{
1494
1496 char *ret;
1499
1500
1501
1503 {
1505
1509 }
1510 else {
1512 {
1514 }
1515
1517 }
1518
1519
1523
1524 *strheader = ret;
1526 }
1527 else
1528 {
1529
1530 snprintf(state->
message,
SHPLOADERMSGLEN,
_(
"Internal error: attempt to generate a COPY statement for data that hasn't been requested in COPY format"));
1531
1533 }
1534}
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().