[drupal-devel] [feature] MySQLi support
Thox
drupal-devel at drupal.org
Mon Aug 29 16:03:43 UTC 2005
Issue status update for
http://drupal.org/node/29910
Post a follow up:
http://drupal.org/project/comments/add/29910
Project: Drupal
Version: cvs
Component: database system
Category: feature requests
Priority: critical
Assigned to: Anonymous
Reported by: nsk
Updated by: Thox
Status: patch (ready to be committed)
See duplicate issue: #24264 [1].
[1] http://drupal.org/node/24264
Thox
Previous comments:
------------------------------------------------------------------------
Mon, 29 Aug 2005 06:59:53 +0000 : nsk
Attachment: http://drupal.org/files/issues/nskpatch.tar.bz2 (4.14 KB)
I added MySQLi support to Drupal by adding a database.mysqli.inc file.
After chx's suggestion I also removed $row from db_result from both
mysqli and mysql files.
Users are supposed to connect to Drupal with a mysqli "URL" in their
settings.php. Just adding an "i" in the mysql entry in settings.php
would work.
MySQLi is the new MySQL client in PHP which connects to MySQL 4.1, 5.0
and beyond. MySQLi replaces the older MySQL library which was popular
with MySQL 3.23 and 4.0.
http://gr.php.net/manual/en/ref.mysqli.php
The older MySQL client does not support full functionality with MySQL
4.1, that's why MySQLi is important.
MySQLi works in PHP 4.1.3 or above, and is more popular in PHP 5.
MySQLi means MySQL Improved.
This patch should be included in core.
------------------------------------------------------------------------
Mon, 29 Aug 2005 07:08:07 +0000 : nsk
Attachment: http://drupal.org/files/issues/nskpatch1.diff (7.1 KB)
Here is the diff for mysqli against Drupal CVS HEAD.
------------------------------------------------------------------------
Mon, 29 Aug 2005 07:08:56 +0000 : nsk
Attachment: http://drupal.org/files/issues/nskpatch2.diff (645 bytes)
Here is the diff for mysql against DRUPAL CVS HEAD. The change was
proposed by chx on IRC.
------------------------------------------------------------------------
Mon, 29 Aug 2005 07:13:28 +0000 : nsk
With this message hereby I release all my changes to the files in this
patch (database.mysqli.inc and database.mysql.inc) in GPL 2 (and later
versions), as well as releasing them into the public domain. The
changes I made are show in the diffs. An external URL where users can
find some documentation is:
http://jnanabase.org/index.php/User:NSK/Software/drupal_and_mysqli
------------------------------------------------------------------------
Mon, 29 Aug 2005 13:22:42 +0000 : Thomas Ilsche
big +1, however not tested yet (will do later today)
More information about the drupal-devel
mailing list