Definition at line 551 of file pgsql2shp-core.c.
565 "select max(octet_length(\"%s\"::text)) from \"%s\".\"%s\"",
566 fname, schema, table);
572 "select max(octet_length(\"%s\"::text)) from \"%s\"",
580 if ( !
res || PQresultStatus(
res) != PGRES_TUPLES_OK )
582 printf(
_(
"Querying for maximum field length: %s"),
583 PQerrorMessage(
conn));
587 if (PQntuples(
res) <= 0 )
592 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().