From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Jerry Day <jerry_day@esri.com>
Cc: 'pgsql-interfaces@postgresql.org' <pgsql-interfaces@postgresql.org>
Subject: Re: Problems with PQfmod() returning -1 on varchar field
Date: Sat, 2 Apr 2005 20:26:34 -0500 (EST)
Message-ID: <200504030126.j331QYV24193@candle.pha.pa.us> (raw)
In-Reply-To: <491DC5F3D279CD4EB4B157DDD62237F406ABE858@zipwire.esri.com>
Jerry Day wrote:
> 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?
Can we see the query? I suspect the column is being manipulated in some
way and the length isn't carried through to the query output --- if so,
there might not be much we can do about it.
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: pgman@candle.pha.pa.us, jerry_day@esri.com
Subject: Re: Problems with PQfmod() returning -1 on varchar field
In-Reply-To: <200504030126.j331QYV24193@candle.pha.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox