aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/db/tools/factory.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/phpbb/db/tools/factory.php')
-rw-r--r--phpBB/phpbb/db/tools/factory.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/phpBB/phpbb/db/tools/factory.php b/phpBB/phpbb/db/tools/factory.php
index 60db2ade03..24e2a4d875 100644
--- a/phpBB/phpbb/db/tools/factory.php
+++ b/phpBB/phpbb/db/tools/factory.php
@@ -25,7 +25,11 @@ class factory
*/
public function get($db_driver, $return_statements = false)
{
- if ($db_driver instanceof \phpbb\db\driver\driver_interface)
+ if ($db_driver instanceof \phpbb\db\driver\mssql || $db_driver instanceof \phpbb\db\driver\mssql_base)
+ {
+ return new \phpbb\db\tools\mssql($db_driver, $return_statements);
+ }
+ else if ($db_driver instanceof \phpbb\db\driver\driver_interface)
{
return new \phpbb\db\tools\tools($db_driver, $return_statements);
}