From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
---|---|
To: | Tabor Kelly <pdxmax(at)dsl-only(dot)net> |
Cc: | <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: NULL feilds and ERROR messages from libpq++ |
Date: | 2001-06-16 12:49:41 |
Message-ID: | Pine.LNX.4.30.0106161449110.755-100000@peter.localdomain |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-interfaces |
Tabor Kelly writes:
> 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.
I think you're operating on a query result that returned zero rows.
--
Peter Eisentraut peter_e(at)gmx(dot)net http://funkturm.homeip.net/~peter
From | Date | Subject | |
---|---|---|---|
Next Message | Dariusz Pietrzak | 2001-06-16 12:52:37 | Re: ODBC, ssl, problems with. |
Previous Message | Peter Eisentraut | 2001-06-16 12:46:26 | Re: Need help with COPY |
From | Date | Subject | |
---|---|---|---|
Next Message | Tibor Laszlo | 2001-06-16 15:48:49 | RE: Error handling in ODBC |
Previous Message | Tabor Kelly | 2001-06-15 22:57:00 | NULL feilds and ERROR messages from libpq++ |