diff options
author | David M <davidmj@users.sourceforge.net> | 2008-01-07 15:19:38 +0000 |
---|---|---|
committer | David M <davidmj@users.sourceforge.net> | 2008-01-07 15:19:38 +0000 |
commit | 2928574ed46334bb8dbbb6612a62db3c3654ba12 (patch) | |
tree | c010569c70e52dbda45dd835a613977fb30f9dc8 /phpBB/includes/functions_install.php | |
parent | 159ce6f8d1bddbe7afc055f70cab3107b9c74a5f (diff) | |
download | forums-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.php | 15 |
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; |