1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-13 04:04:12 +02:00

[ticket/10748] Split postgres DB tools into it's own class

PHPBB3-10748
This commit is contained in:
Joas Schilling
2015-02-13 22:46:18 +01:00
parent e5104b5d53
commit ec1fb0423d
4 changed files with 637 additions and 277 deletions

View File

@@ -29,6 +29,10 @@ class factory
{
return new \phpbb\db\tools\mssql($db_driver, $return_statements);
}
else if ($db_driver instanceof \phpbb\db\driver\postgres)
{
return new \phpbb\db\tools\postgres($db_driver, $return_statements);
}
else if ($db_driver instanceof \phpbb\db\driver\driver_interface)
{
return new \phpbb\db\tools\tools($db_driver, $return_statements);