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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user