[development] Oracle porting & db_num_rows patches
dries.buytaert at gmail.com
Sat Apr 7 21:26:55 UTC 2007
On 07 Apr 2007, at 10:40, Gabriele Turchi wrote:
> Hi all. I'm doing a drupal 5.1 Oracle db experimental port. I have a
> first core installation more or less working.
> Next target will be cck and views.
> One problem was the need to remove the db_num_rows calls
> (unavailable in
> Oracle). I've seen here and there an inappropriate use of this
> ("select *" and db_num_rows in place of "select count(*)"), and I
> my patches can be useful also for performance under other databases.
Note that we can't commit your patch to the Drupal 5 branch -- only
bugfixes are committed to that branch. You'll want to provide
patches for CVS HEAD so that the new functionality can become part of
You'll want to check with Larry Garfield -- he's working on PDO
support for Drupal 6, and is also looking into removing db_num_rows
(). See this week's thread about "PDO and database limitations" for
Hope that helps and looking forward to your contributions,
Dries Buytaert :: http://www.buytaert.net/
More information about the development