Re: :Oracle function

2007-04-11 Thread Andy Hassall
John Scoles wrote: >> [EMAIL PROTECTED] wrote: >>> Anyone knows if DBD::Oracle has a function similar to the function >>> $sth->rows that exist in DBD::Mysql? >> >> This is a DBI feature. It exists for all drivers. >> >>> This function give us the number o rows in a select command. So, we >>> don

Re: DBD::mysql 4.004 Released!

2007-04-11 Thread Scott T. Hildreth
On Wed, 2007-04-11 at 09:59 -0500, Scott T. Hildreth wrote: > I had to add this to dbdimp.c, mysql_warning_count() is not implemented > before 4.1, > > #if MYSQL_VERSION_ID >= SQL_STATE_VERSION > imp_sth->warning_count = mysql_warning_count(&imp_dbh->mysql); > #else > imp_sth->warning_count =

Re: :Oracle function

2007-04-11 Thread John Scoles
Oracle doesn't have this feature so DBD::Oracle doesn't either. This has cropped up many times before So you can blame Oracle on that. Thier logic (as it was explained to me) is "How could you get the number of rows you are going to fetch without counting them all first?" or someting very co

Re: DBD::mysql 4.004 Released!

2007-04-11 Thread Scott T. Hildreth
I had to add this to dbdimp.c, mysql_warning_count() is not implemented before 4.1, #if MYSQL_VERSION_ID >= SQL_STATE_VERSION imp_sth->warning_count = mysql_warning_count(&imp_dbh->mysql); #else imp_sth->warning_count = 0; #endif I don't know if setting the count to 0 is what I should do he

RE: :Oracle function

2007-04-11 Thread Garrett, Philip (MAN-Corporate)
[EMAIL PROTECTED] wrote: > Anyone knows if DBD::Oracle has a function similar to the function > $sth->rows that exist in DBD::Mysql? This is a DBI feature. It exists for all drivers. > This function give us the number o rows in a select command. So, we > don´t have to run a fetchrow with a while

DBD::Oracle function

2007-04-11 Thread rodneyr
Anyone knows if DBD::Oracle has a function similar to the function $sth->rows that exist in DBD::Mysql? This function give us the number o rows in a select command. So, we don´t have to run a fetchrow with a while loop to know how many rows the select will return. This is very important to me bec