Definition at line 555 of file pgsql2shp-core.c.
  569                         "select max(octet_length(\"%s\"::text)) from \"%s\".\"%s\"",
 
  570                         fname, schema, table);
 
  576                         "select max(octet_length(\"%s\"::text)) from \"%s\"",
 
  584         if ( ! 
res || PQresultStatus(
res) != PGRES_TUPLES_OK )
 
  586                 printf( 
_(
"Querying for maximum field length: %s"),
 
  587                         PQerrorMessage(
conn));
 
  591         if (PQntuples(
res) <= 0 )
 
  596         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().