Re: pg_last_error() doesn't return connection errors - Mailing list pgsql-php

From Frank Naude
Subject Re: pg_last_error() doesn't return connection errors
Date
Msg-id AANLkTikSx4sAmvPb0Wwo01JTnN+WPFXC2ZzNtS1Kw=f=@mail.gmail.com
Whole thread Raw
In response to Re: pg_last_error() doesn't return connection errors  (Andrew McMillan <andrew@morphoss.com>)
Responses Re: pg_last_error() doesn't return connection errors
List pgsql-php
Hi Andrew,

Thank you very much for the reply!

> Alternatively, does pg_errormessage() have the same flaw...?

Unfortunately pg_errormessage() doesn't work either. It returns:

Warning: pg_errormessage() [function.pg-errormessage]: No PostgreSQL
link opened yet in...

> That behaviour doesn't seem particularly unnatural to me,...

It is inconsistent with how the other DB modules behave. I can provide
you with some examples if it would help.

Best regards.

Frank

pgsql-php by date:

Previous
From: Andrew McMillan
Date:
Subject: Re: pg_last_error() doesn't return connection errors
Next
From: Grzegorz Ornoch
Date:
Subject: Re: pg_last_error() doesn't return connection errors