From: | Maarten Boekhold <maartenb(at)dutepp0(dot)et(dot)tudelft(dot)nl> |
---|---|
To: | "Dr(dot) Michael Meskes" <meskes(at)online-club(dot)de> |
Cc: | PostgreSQL Hacker <pgsql-hackers(at)postgreSQL(dot)org> |
Subject: | Re: [HACKERS] ecpg problem |
Date: | 1998-08-15 10:27:55 |
Message-ID: | Pine.SUN.3.91.980815122630.21300D-100000@dutepp0.et.tudelft.nl |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Fri, 14 Aug 1998, Dr. Michael Meskes wrote:
> I just found this one on my TODO list:
>
> The error message for "no data" in an exec sql insert select from statement
> has to be 100.
>
> It seems I cannot get that kind of information from libpq other than
> checking for the result being 0 tuples. But is this correct? Or are there
> possibilities to get 0 tuples? That is I get PQcmdTuples(results) = 0 with
> the return code being PGRES_COMMAND_OK.
Shouldn't you check for PGRES_TUPLES_OK ? I always check for this if I
want to know if a data select statement has succeeded. And this also
still allows PQntuples() == 0
Maarten
_____________________________________________________________________________
| TU Delft, The Netherlands, Faculty of Information Technology and Systems |
| Department of Electrical Engineering |
| Computer Architecture and Digital Technique section |
| M(dot)Boekhold(at)et(dot)tudelft(dot)nl |
-----------------------------------------------------------------------------
From | Date | Subject | |
---|---|---|---|
Next Message | Jan Wieck | 1998-08-15 13:56:30 | Re: [HACKERS] Problem with parser |
Previous Message | Bruce Momjian | 1998-08-15 04:35:19 | Re: [HACKERS] setheapoverride |