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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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

Browse pgsql-interfaces by date

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