pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gerard Samuel <php-db@trini0.org>
To: Martin Marques <martin@bugs.unl.edu.ar>
To: php-db@lists.php.net
Cc: pgsql-php@postgresql.org
Subject: Re: [PHP-DB] pg_result_error()
Date: Fri, 12 Dec 2003 16:51:49 -0500
Message-ID: <200312121651.49375.php-db@trini0.org> (raw)
In-Reply-To: <200312121224.57200.martin@bugs.unl.edu.ar>
References: <200312112209.54516.php-db@trini0.org>
	<200312120908.18042.php-db@trini0.org>
	<200312121224.57200.martin@bugs.unl.edu.ar>

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...




view thread (3+ messages)

Message-ID: <200312121651.49375.php-db@trini0.org>
Permalink:  ../200312121651.49375.php-db@trini0.org/
Also on:    postgresql.org/message-id/200312121651.49375.php-db@trini0.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: php-db@trini0.org, martin@bugs.unl.edu.ar, php-db@lists.php.net
  Subject: Re: [PHP-DB] pg_result_error()
  In-Reply-To: <200312121651.49375.php-db@trini0.org>
  References: <200312112209.54516.php-db@trini0.org> <200312120908.18042.php-db@trini0.org> <200312121224.57200.martin@bugs.unl.edu.ar> <200312121651.49375.php-db@trini0.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox