Skip site navigation (1) Skip section navigation (2)

Problems with PQfmod() returning -1 on varchar field (libpq-8.0.0)?

From: Jerry Day <jerry_day(at)esri(dot)com>
To: "'pgsql-interfaces(at)postgresql(dot)org'" <pgsql-interfaces(at)postgresql(dot)org>
Subject: Problems with PQfmod() returning -1 on varchar field (libpq-8.0.0)?
Date: 2005-04-02 00:21:03
Message-ID: 491DC5F3D279CD4EB4B157DDD62237F406ABE858@zipwire.esri.com (view raw or flat)
Thread:
Lists: pgsql-interfaces
Hi all,

I've recently encountered a situation where PQfmod() fails to return the
defined length of a varchar field referenced in a query, as expected -
returning no information (-1), instead. Has anyone else encountered this
issue? If so, why does this occur? Can you recommended a method to more
reliably obtain the length of varchar fields, as defined in the relations
referenced by a query? 

Thanks,

Jerry L. Day

Responses

pgsql-interfaces by date

Next:From: Zlatko MatićDate: 2005-04-02 22:48:15
Subject: OLEDB and ODBC
Previous:From: Marvin BellamyDate: 2005-04-01 20:15:46
Subject: Re: libpq: Newbie help w/ data type conversions on

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group