Re: [phplib-dev] affected_rows() with db_oracle.inc From: Kirill Maximov (maxkir <email protected>)
Date: 07/17/00

Jesse Swensen wrote:
>
> on 7/14/00 3:17 AM, Kirill Maximov at maxkir <email protected> wrote:
>
> > Carl Youngblood wrote:
> >>
> >> No, $db->affected_rows() doesn't even exist in the db_oracle.inc, especially
> >> because there isn't a function for it to use in PHP.
> >
> > I have the following in db_oracle.inc:
> >
> > function affected_rows()
> > {
> > return ora_numrows($this->Query_ID);
> > }
> >
> > ora_numrows - existing, but not documented function.
> >
> > KIR
> >
> But this will only return a value for inserts, updates and deletes. It does
> not return a value for selects.

  For selects there is a hack in db_oracle.inc. See method num_rows().

  Regards,
  KIR

  P.S. BTW, I'm afraid that this topic should be discussed in phplib
       general list, not in development one.

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-dev-unsubscribe <email protected>
For additional commands, e-mail: phplib-dev-help <email protected>