From 2fdbeb71b86be4a0f8ae7383ae7ac30c3bd09d95 Mon Sep 17 00:00:00 2001 From: alecpl Date: Mon, 1 Dec 2008 13:28:42 +0000 Subject: #1485590: don't use mysql5.initial.sql --- installer/rcube_install.php | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/installer/rcube_install.php b/installer/rcube_install.php index cb9333e30..a20a99025 100644 --- a/installer/rcube_install.php +++ b/installer/rcube_install.php @@ -479,16 +479,6 @@ class rcube_install $db_map = array('pgsql' => 'postgres', 'mysqli' => 'mysql'); $engine = isset($db_map[$DB->db_provider]) ? $db_map[$DB->db_provider] : $DB->db_provider; - // find out db version - if ($engine == 'mysql') { - $DB->query('SELECT VERSION() AS version'); - $sql_arr = $DB->fetch_assoc(); - $version = floatval($sql_arr['version']); - - if ($version >= 4.1) - $engine = 'mysql5'; - } - // read schema file from /SQL/* $fname = "../SQL/$engine.initial.sql"; if ($lines = @file($fname, FILE_SKIP_EMPTY_LINES)) { -- cgit v1.2.3