Details
-
Type:
New Feature
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 3.0.x
-
Fix Version/s: 3.0.8-RC1
-
Component/s: Database Abstraction Layer (DBAL)
-
Labels:None
-
Environment:PHP Environment:
Database:
-
phpBB Import Key:
Description
Currently phpBB only supports the community mssql driver for php.
Our team has created a phpBB 3.0.x driver package that uses the Native SQL Server driver for PHP which was recently released by Microsoft (currently in v1.1).
More information regarding the Native SQL Server driver for PHP can be found
here:
I've attached the full patch file that adds Native SQL Server support to phpBB 3.0.x to this request and would love to work with the developers/maintainers in order to have this package officially supported.
Issue Links
- caused
-
PHPBB3-11066
MSSQLnative driver contains debug code error_reporting(E_ALL)
-


Hey, thank you for submitting this patch. Overall I'd say it looks like a really good starting point. I'm sure other developers will add a few more detailed comments soon. I'd just like to mention a few things I noticed on a first glance:
The schema file appears to be identical to the mssql_schema.sql file already present, there is no need to specify a seperate one in that case. Just reuse the existing one. You can do so by setting 'SCHEMA' to 'mssql' rather than 'mssqlnative' in includes/functions_install.php
phpBB does not use a numrows function of any sort because some DBMSs do not support it. So it seems rather odd that you buffer all results in a PHP array just to get the amount of rows even though the API does not have any way of using that information?
I have a few problems with the style/formatting of the code. The indentation seems to be a mix of spaces and tabs. The use of spaces within the code seems rather arbitrary. Some names correctly only consist of lower case characters and underscores, others mix the names with camel case or only use camel case. In order to commit this into the phpBB repository it will have to meet the guidelines explained in http://code.phpbb.com/svn/phpbb/branches/phpBB-3_0_0/phpBB/docs/coding-guidelines.html#code
Thanks again!
Nils