Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-php by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group