pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tabor Kelly <pdxmax@dsl-only.net>
To: pgsql-general@postgresql.org
Subject: NULL feilds and ERROR messages from libpq++
Date: Fri, 15 Jun 2001 15:57:00 -0700
Message-ID: <168108746709.20010615155700@dsl-only.net> (raw)
In-Reply-To: <7794567120.20010615120040@dsl-only.net>
References: <7794567120.20010615120040@dsl-only.net>

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





view thread (3+ messages)  latest in thread

Message-ID: <168108746709.20010615155700@dsl-only.net>
Permalink:  ../168108746709.20010615155700@dsl-only.net/
Also on:    postgresql.org/message-id/168108746709.20010615155700@dsl-only.net

 · 

reply

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: pdxmax@dsl-only.net, pgsql-general@postgresql.org
  Subject: Re: NULL feilds and ERROR messages from libpq++
  In-Reply-To: <168108746709.20010615155700@dsl-only.net>

* 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