aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_install.php
diff options
context:
space:
mode:
authorDavid M <davidmj@users.sourceforge.net>2008-01-07 15:19:38 +0000
committerDavid M <davidmj@users.sourceforge.net>2008-01-07 15:19:38 +0000
commit2928574ed46334bb8dbbb6612a62db3c3654ba12 (patch)
treec010569c70e52dbda45dd835a613977fb30f9dc8 /phpBB/includes/functions_install.php
parent159ce6f8d1bddbe7afc055f70cab3107b9c74a5f (diff)
downloadforums-2928574ed46334bb8dbbb6612a62db3c3654ba12.tar
forums-2928574ed46334bb8dbbb6612a62db3c3654ba12.tar.gz
forums-2928574ed46334bb8dbbb6612a62db3c3654ba12.tar.bz2
forums-2928574ed46334bb8dbbb6612a62db3c3654ba12.tar.xz
forums-2928574ed46334bb8dbbb6612a62db3c3654ba12.zip
- a few tiny clean ups
- a new MS SQL DBAL, it does not work so hot because of issues with the extension it depends on git-svn-id: file:///svn/phpbb/trunk@8313 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_install.php')
-rw-r--r--phpBB/includes/functions_install.php15
1 files changed, 12 insertions, 3 deletions
diff --git a/phpBB/includes/functions_install.php b/phpBB/includes/functions_install.php
index 97775eacf7..31085344f8 100644
--- a/phpBB/includes/functions_install.php
+++ b/phpBB/includes/functions_install.php
@@ -82,6 +82,16 @@ function get_available_dbms($dbms = false, $return_unavailable = false, $only_20
'AVAILABLE' => true,
'2.0.x' => true,
),
+ 'mssql_2005'=> array(
+ 'LABEL' => 'MS SQL Server [ 2005 ]',
+ 'SCHEMA' => 'mssql',
+ 'MODULE' => 'sqlsrv',
+ 'DELIM' => 'GO',
+ 'COMMENTS' => 'remove_comments',
+ 'DRIVER' => 'mssql_2005',
+ 'AVAILABLE' => true,
+ '2.0.x' => true,
+ ),
'db2' => array(
'LABEL' => 'IBM DB2',
'SCHEMA' => 'db2',
@@ -201,10 +211,9 @@ function dbms_select($default = '', $only_20x_options = false)
*/
function get_tables($db)
{
- switch ($db->sql_layer)
+ switch ($db->dbms_type)
{
case 'mysql':
- case 'mysqli':
$sql = 'SHOW TABLES';
break;
@@ -215,7 +224,6 @@ function get_tables($db)
break;
case 'mssql':
- case 'mssql_odbc':
$sql = "SELECT name
FROM sysobjects
WHERE type='U'";
@@ -317,6 +325,7 @@ function connect_check_db($error_connect, &$error, $dbms_details, $table_prefix,
case 'mssql':
case 'mssql_odbc':
+ case 'mssql_2005':
$prefix_length = 90;
break;