removed MySQL < 5 code

This commit is contained in:
Sebastian Mendel
2007-10-02 09:10:16 +00:00
parent 0e8334a41b
commit 27492912a2

View File

@@ -15,7 +15,7 @@ PMA_checkParameters(array('db'));
$is_show_stats = $cfg['ShowStats'];
if (PMA_MYSQL_INT_VERSION >= 50002 && $db == 'information_schema') {
if ($db == 'information_schema') {
$is_show_stats = false;
$db_is_information_schema = true;
} else {
@@ -47,7 +47,7 @@ if (!isset($is_db) || !$is_db) {
/**
* Changes database charset if requested by the user
*/
if (isset($submitcollation) && !empty($db_collation) && PMA_MYSQL_INT_VERSION >= 40101) {
if (isset($submitcollation) && !empty($db_collation)) {
list($db_charset) = explode('_', $db_collation);
$sql_query = 'ALTER DATABASE ' . PMA_backquote($db) . ' DEFAULT' . PMA_generateCharsetQueryPart($db_collation);
$result = PMA_DBI_query($sql_query);