Re: false No rows returned error - Mailing list pgsql-sql

From Jim Martinez
Subject Re: false No rows returned error
Date
Msg-id Pine.LNX.4.33.0203231309140.7406-100000@unagi.e-techservices.com
Whole thread Raw
In response to Re: false No rows returned error  ("Dan Langille" <dan@langille.org>)
List pgsql-sql
On Mar 23, Dan Langille wrote:

> On 23 Mar 2002 at 11:04, Jim Martinez wrote:
> 
> > 
> > $res = pg_exec($conn, $sql) || exit ("query failed: ".__FILE__ . __LINE__ 
> > ."<br> sql is $sql" );
> 
> Change the above to this, just to be sure:
> 
> $res = pg_exec($conn, $sql);
> if (!$res) {
>     echo "query failed: ".__FILE__ . __LINE__ ."<br> sql is $sql" );
>     exit;
> }

That worked!  Thanks.

Tom, you were right it was a php issue.  This morning I subscribed to the
pgsql-php list, then accidentally posted to the sql list that I've been
lurking on.

Best regards,
Jim






pgsql-sql by date:

Previous
From: Iklódi Lajos
Date:
Subject: Binary data in bytea field
Next
From: Joe Conway
Date:
Subject: Re: Binary data in bytea field