Libpq: PQftype, PQfsize

From: "Bozena Potempa" <Bozena(dot)Potempa(at)otc(dot)pl>
To: <pgsql-hackers(at)postgresql(dot)org>
Subject: Libpq: PQftype, PQfsize
Date: 2010-08-10 14:19:22
Message-ID: E1OipiQ-0001av-Ua@ns.otc.pl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

I have a test table with varchar(40) column. After executing the following
query:
select substr(fc,1,2) from test
PQftype returns for the result column PG_TYPE_TEXT and PQfsize returns -1.
Is it the expected behaviour? The most suprising for me is PQfsize.
Tested on PostgreSQL 8.4, 32-bit Windows.
Thank you in advance for explanations.

Bozena

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Fujii Masao 2010-08-10 14:28:04 trace_recovery_messages
Previous Message Kevin Grittner 2010-08-10 14:18:58 Re: host name support in pg_hba.conf