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

Re: [PHP-DB] pg_result_error()

From: Gerard Samuel <php-db(at)trini0(dot)org>
To: Martin Marques <martin(at)bugs(dot)unl(dot)edu(dot)ar>, php-db(at)lists(dot)php(dot)net
Cc: pgsql-php(at)postgresql(dot)org
Subject: Re: [PHP-DB] pg_result_error()
Date: 2003-12-12 21:51:49
Message-ID: 200312121651.49375.php-db@trini0.org (view raw or flat)
Thread:
Lists: pgsql-php
On Friday 12 December 2003 10:24 am, Martin Marques wrote:
> > That is fine and all, but my original example was just an example of the
> > non functionality of pg_result_error(), not how to handle errors when a
> > query fails.
> > But for arguement sake, lets use your example in some dummy code[0].
> > $result is still boolean false, and pg_result_error() will still return
> > an empty string, and using die, would just die, with no report of what
> > happened. Then whats the use of pg_result_error().
>
> Looks like you are totally right. Tried it and it works horrible. Any idea
> on why this is like this?
>

Seems like Im not the only one who thought this function is useless...
http://bugs.php.net/bug.php?id=18747
So Im going to modify my code to not use this function, as it is really a 
total waste of time at the moment.
Thanks for the chat...


In response to

pgsql-php by date

Next:From: Nathaniel PriceDate: 2003-12-12 22:19:53
Subject: Re: Reordering results for a report
Previous:From: Greg SpiegelbergDate: 2003-12-12 21:25:00
Subject: Re: [PHP] Reordering results for a report

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