Error message

Started by Igor Korotabout 5 years ago3 messagesgeneral
Jump to latest
#1Igor Korot
ikorot01@gmail.com

Hi, ALL,

Documentation for PQprepare states:

[quote]
As with PQexec, the result is normally a PGresult object whose
contents indicate server-side success or failure. A null result
indicates out-of-memory or inability to send the command at all. Use
PQerrorMessage to get more information about such errors.
[/quote]

But this function is not the same as PQexec().

So what does it return if it succeeds?

Thank you.

#2David G. Johnston
david.g.johnston@gmail.com
In reply to: Igor Korot (#1)
Re: Error message

On Monday, March 15, 2021, Igor Korot <ikorot01@gmail.com> wrote:

[quote]
As with PQexec, the result is normally a PGresult object whose
contents indicate server-side success or failure. A null result
indicates out-of-memory or inability to send the command at all. Use
PQerrorMessage to get more information about such errors.
[/quote]

But this function is not the same as PQexec().

So what does it return if it succeeds?

Exactly what the syntax line and that first sentence says it does, a
PGresult.

David J.

#3Igor Korot
ikorot01@gmail.com
In reply to: David G. Johnston (#2)
Re: Error message

Thx, David.
I need to get some sleep. ;-)

On Tue, Mar 16, 2021 at 12:35 AM David G. Johnston
<david.g.johnston@gmail.com> wrote:

Show quoted text

On Monday, March 15, 2021, Igor Korot <ikorot01@gmail.com> wrote:

[quote]
As with PQexec, the result is normally a PGresult object whose
contents indicate server-side success or failure. A null result
indicates out-of-memory or inability to send the command at all. Use
PQerrorMessage to get more information about such errors.
[/quote]

But this function is not the same as PQexec().

So what does it return if it succeeds?

Exactly what the syntax line and that first sentence says it does, a PGresult.

David J.