removed MySQL < 5 code
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user