BUG #4715: libpq `PQgetlength' return invalid field length.

From: "VEN" <bsditer(at)gmail(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #4715: libpq `PQgetlength' return invalid field length.
Date: 2009-03-18 03:03:15
Message-ID: 200903180303.n2I33FSR088828@wwwmaster.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


The following bug has been logged online:

Bug reference: 4715
Logged by: VEN
Email address: bsditer(at)gmail(dot)com
PostgreSQL version: 8.3.7
Operating system: FreeBSD
Description: libpq `PQgetlength' return invalid field length.
Details:

Database have below table:
CREATE TABLE TEST {
NUM BIGINT NOT NULL DEFAULT 0
};

EXEC "SELECT NUM FROM TEST LIMIT 1"
PQgetlength return valid length (sizeof(int64)), it's ok.

but
EXEC "SELECT SUM(NUM)::BIGINT FROM TEST"
or
EXEC "SELECT SUM(NUM) FROM TEST"

PQgetlength already return zero.

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Heikki Linnakangas 2009-03-18 08:47:09 Re: log : bad file dscriptor????
Previous Message Roger Chang 2009-03-18 02:42:36 BUG #4714: Unicode Big5 Conversion