Definition at line 548 of file pgsql2shp-core.c.
562 "select max(octet_length(\"%s\"::text)) from \"%s\".\"%s\"",
563 fname, schema, table);
569 "select max(octet_length(\"%s\"::text)) from \"%s\"",
577 if ( !
res || PQresultStatus(
res) != PGRES_TUPLES_OK )
579 printf(
_(
"Querying for maximum field length: %s"),
580 PQerrorMessage(
conn));
584 if (PQntuples(
res) <= 0 )
589 size = atoi(PQgetvalue(
res, 0, 0));
#define LWDEBUGF(level, msg,...)
static SHPCONNECTIONCONFIG * conn
void stringbuffer_release(stringbuffer_t *s)
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.
void stringbuffer_init(stringbuffer_t *s)
const char * stringbuffer_getstring(stringbuffer_t *s)
Returns a reference to the internal string being managed by the stringbuffer.
References _, conn, LWDEBUGF, window::res, stringbuffer_aprintf(), stringbuffer_getstring(), stringbuffer_init(), and stringbuffer_release().
Referenced by ShpDumperOpenTable().