Re: pg_last_error() doesn't return connection errors

From: Frank Naude <naudefj(at)gmail(dot)com>
To: Andrew McMillan <andrew(at)morphoss(dot)com>
Cc: pgsql-php(at)postgresql(dot)org
Subject: Re: pg_last_error() doesn't return connection errors
Date: 2010-08-27 09:17:18
Message-ID: AANLkTikSx4sAmvPb0Wwo01JTnN+WPFXC2ZzNtS1Kw=f=@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-php by date

  From Date Subject
Next Message Grzegorz Ornoch 2010-08-27 10:22:40 Re: pg_last_error() doesn't return connection errors
Previous Message Andrew McMillan 2010-08-26 22:44:33 Re: pg_last_error() doesn't return connection errors