Download | Plain Text | Line Numbers
diff -Naur phpMyAdmin.orig/libraries/common.lib.php phpMyAdmin/libraries/common.lib.php
--- phpMyAdmin.orig/libraries/common.lib.php 2006-08-21 13:45:16.000000000 +0200
+++ phpMyAdmin/libraries/common.lib.php 2006-09-20 20:04:41.000000000 +0200
@@ -1374,6 +1374,7 @@
if (PMA_MYSQL_INT_VERSION < 50000) {
return false;
}
+ return false;
if ( false === PMA_DBI_fetch_value('SELECT TABLE_NAME FROM information_schema.VIEWS WHERE TABLE_SCHEMA = \'' . $db . '\' AND TABLE_NAME = \'' . $table . '\';')) {
return false;
} else {
diff -Naur phpMyAdmin.orig/libraries/database_interface.lib.php phpMyAdmin/libraries/database_interface.lib.php
--- phpMyAdmin.orig/libraries/database_interface.lib.php 2006-03-08 18:54:29.000000000 +0100
+++ phpMyAdmin/libraries/database_interface.lib.php 2006-09-20 20:10:25.000000000 +0200
@@ -174,6 +174,10 @@
function PMA_DBI_get_dblist($link = null)
{
$dbs_array = PMA_DBI_fetch_result('SHOW DATABASES;', $link);
+ foreach ($dbs_array as $key => $db) {
+ if ($db == "information_schema")
+ unset($dbs_array[$key]);
+ }
// Before MySQL 4.0.2, SHOW DATABASES could send the
// whole list, so check if we really have access:
@@ -245,7 +249,7 @@
$tables = array();
- if ( PMA_MYSQL_INT_VERSION >= 50002 ) {
+ if ( 0 && PMA_MYSQL_INT_VERSION >= 50002 ) {
// get table information from information_schema
if ( $table ) {
if ( true === $tbl_is_group ) {
@@ -396,7 +400,7 @@
// initialize to avoid errors when there are no databases
$databases = array();
- if ( PMA_MYSQL_INT_VERSION >= 50002 ) {
+ if ( 0 && PMA_MYSQL_INT_VERSION >= 50002 ) {
// get table information from information_schema
if ( $database ) {
$sql_where_schema = 'WHERE `SCHEMA_NAME` LIKE \''
@@ -496,7 +500,7 @@
{
$columns = array();
- if ( PMA_MYSQL_INT_VERSION >= 50002 ) {
+ if ( 0 && PMA_MYSQL_INT_VERSION >= 50002 ) {
$sql_wheres = array();
$array_keys = array();
diff -Naur phpMyAdmin.orig/libraries/mysql_charsets.lib.php phpMyAdmin/libraries/mysql_charsets.lib.php
--- phpMyAdmin.orig/libraries/mysql_charsets.lib.php 2006-01-17 18:02:30.000000000 +0100
+++ phpMyAdmin/libraries/mysql_charsets.lib.php 2006-09-20 20:06:36.000000000 +0200
@@ -114,7 +114,7 @@
// information_schema database: We know it!
return 'utf8_general_ci';
}
- if ( PMA_MYSQL_INT_VERSION >= 50006 ) {
+ if ( 0 && PMA_MYSQL_INT_VERSION >= 50006 ) {
// Since MySQL 5.0.6, we don't have to parse SHOW CREATE DATABASE anymore.
return PMA_DBI_fetch_value('SELECT DEFAULT_COLLATION_NAME FROM information_schema.SCHEMATA WHERE SCHEMA_NAME = \'' . PMA_sqlAddSlashes($db) . '\' LIMIT 1;');
} elseif ( PMA_MYSQL_INT_VERSION >= 40101 ) {