Re: pg_result_error()
| From: | Martin Marques | Date: | Fri, 12 Dec 2003 11:44:16 +0000 |
| Subject: | Re: pg_result_error() | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-32022@lists.php.net to get a copy of this message | ||
El Vie 12 Dic 2003 00:09, Gerard Samuel escribió:
> What good is this function?
> A quick example of the wall Im running into ->
> $sql = 'INSERT INTO .....';
> $result = pg_query($conn_id, $sql);
> if ($result === false)
> {
> var_dump( pg_result_error( $result ) );
I would use here this:
die(pg_result_error( $result ));
> }
>
> According to the manual, pg_result_error takes the result resource.
> If that resource is boolean false for one reason or another, then
> pg_result_error isn't useful.
> Anyone has any other ideas, besides using
> pg_last_error()?
Did you try it?
--
08:43:01 up 16 days, 14:59, 2 users, load average: 0.20, 0.37, 0.36
-----------------------------------------------------------------
Martín Marqués | select 'mmarques' || '@' || 'unl.edu.ar'
Centro de Telematica | DBA, Programador, Administrador
Universidad Nacional
del Litoral
-----------------------------------------------------------------