[drupal-devel] [feature] MySQLi

Thox drupal-devel at drupal.org
Thu Jun 9 11:08:09 UTC 2005


Issue status update for http://drupal.org/node/24264

 Project:      Drupal
 Version:      4.6.1
 Component:    base system
 Category:     feature requests
 Priority:     critical
 Assigned to:  Anonymous
 Reported by:  nsk
 Updated by:   Thox
-Status:       active
+Status:       patch
 Attachment:   http://drupal.org/files/issues/database.mysqli.inc (5.9 KB)

Just one file for the /includes/ folder. I've tested this on my local
machine and it seems that everything is working fine (I didn't do much,
add / delete one node, saved admin settings).


Important: I've removed the "CLIENT_FOUND_ROWS" part, as mysqli
connects differently. I don't know how essential this is/was and
whether it will affect anything like paging?




Thox



Previous comments:
------------------------------------------------------------------------

June 3, 2005 - 21:59 : nsk

I have asked this before but no reply, so could someone have a look at
it?


I noticed Drupal 4.6.1 does not support MySQLi, the new MySQL client of
PHP 5.
It only supports the old deprecated MySQL client.


Are you planning adding MySQLi support in future Drupal versions?


I have already written some abstraction functions that dynamically
detect
which client is installed, and it's GPL. Perhaps you could take some of
my code for
a MySQLi-enabled Drupal version. In general it is very very easy to
enable MySQLi support, I give an example here:
http://jnana.wikinerds.org/index.php/MySQLi


PEAR also supports MySQLi.







More information about the drupal-devel mailing list