1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-19 15:01:33 +02:00

[ticket/10748] Split MS SQL from the db tools file into it's own

PHPBB3-10748
This commit is contained in:
Joas Schilling
2015-01-24 10:51:59 +01:00
parent b0c910e49c
commit 4ea90ca44d
3 changed files with 862 additions and 577 deletions

View File

@@ -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);
}