NULL feilds and ERROR messages from libpq++

From: Tabor Kelly <pdxmax(at)dsl-only(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: NULL feilds and ERROR messages from libpq++
Date: 2001-06-15 22:57:00
Message-ID: 168108746709.20010615155700@dsl-only.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-interfaces

I am using the libpq++ interface to interact with a table that has
some NULL fields in it. Why is it that every time I do a
PgDatabase::GetValue on a field that has a NULL value, I get an error
message printed to my console ("PQgetvalue: ERROR! tuple number 0 is
out of range 0..-1")? Is this the normal behavior? It seems very odd
that it would be, since it is common to interact with tables that
contain NULL fields.

Thank You,

Tabor Kelly

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Rob Hoopman 2001-06-15 23:14:26 Re: canned code to get db on web quickly via perl or PHP?
Previous Message Paul Bemowski 2001-06-15 22:14:42 LARGE table won't use index?

Browse pgsql-interfaces by date

  From Date Subject
Next Message Peter Eisentraut 2001-06-16 12:49:41 Re: NULL feilds and ERROR messages from libpq++
Previous Message Tabor Kelly 2001-06-15 19:00:40 NULL feilds and ERROR messages from libpq++