1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 14:00:31 +02:00

aaaand DB2 support. :)

git-svn-id: file:///svn/phpbb/trunk@9294 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen
2009-01-22 12:54:26 +00:00
parent e9f2f841f6
commit 5f265f47d9
3 changed files with 265 additions and 278 deletions

View File

@@ -505,6 +505,19 @@ function connect_check_db($dbms_details, $table_prefix, $dbhost, $dbuser, $dbpas
* @todo check odbc.defaultlrl (min 128K) and odbc.defaultbinmode (1)
*/
break;
case 'db2':
if (version_compare($db->sql_server_info(true), '8.2.2', '<'))
{
$error[] = phpbb::$user->lang['INST_ERR_DB_DB2_VERSION'];
}
// Now check the extension version
if (!function_exists('db2_escape_string'))
{
$error[] = phpbb::$user->lang['INST_ERR_DB_DB2_EXT_VERSION'];
}
break;
}
if (sizeof($error))