RE: [PHP-DEV] please remove pgsql warning on fetch_row - includes diff

2001-03-26 Thread Marc Boeren


>  while (@pg_fetch_row()) {
>   ...
>   }
>
>will suppress the warnings just for the call to pg_fetch_row.

I know, but I'm not calling it from within php-script, but from the
dbx-module (in C-code).
Plus, calling it with @ also suppresses any other warnings pg_fetch_row
should rightly give.

IMO, a wrong row-index should just return false, as stated in the
documentation.

Cheeiro, Marc.


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] please remove pgsql warning on fetch_row - includes diff

2001-03-26 Thread Adam Wright

Heya,

Using your example...

  while (@pg_fetch_row()) {
   ...
   }

will suppress the warnings just for the call to pg_fetch_row.

adamw

- Original Message -
From: "Marc Boeren" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 26, 2001 10:47 AM
Subject: [PHP-DEV] please remove pgsql warning on fetch_row - includes diff


>
> Hi!
>
> The PostgreSQL module issues a warning when trying to fetch a row with an
> invalid rownumber. pg_fetch_row also returns false.
> I would ask if someone could remove the warning that is issued. The docs
> says the function returns false, this should be enough, I think.
> I would really like to construct a while-loop
> while (pg_fetch_row()) {
>   ...
>   }
>
> In fact, in the dbx-module I am doing exactly that, and the postgresql
> addition generates the warning even though the loop is ended
successfully...
>
> To make it easier, I attached a diff that removes said warning. I'm not
> really sure if this is how a patch is submitted (do you need a diff for
> that?), but if I'm doing something wrong maybe anyone can show me how it's
> done.
>
> Cheerio, Marc.
>
>
>
>
>  <>
>






> --
> PHP Development Mailing List 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]