Download | Plain Text | No Line Numbers


  1. diff -Naur phpMyAdmin.orig/libraries/common.lib.php phpMyAdmin/libraries/common.lib.php
  2. --- phpMyAdmin.orig/libraries/common.lib.php 2006-08-21 13:45:16.000000000 +0200
  3. +++ phpMyAdmin/libraries/common.lib.php 2006-09-20 20:04:41.000000000 +0200
  4. @@ -1374,6 +1374,7 @@
  5. if (PMA_MYSQL_INT_VERSION < 50000) {
  6. return false;
  7. }
  8. + return false;
  9. if ( false === PMA_DBI_fetch_value('SELECT TABLE_NAME FROM information_schema.VIEWS WHERE TABLE_SCHEMA = \'' . $db . '\' AND TABLE_NAME = \'' . $table . '\';')) {
  10. return false;
  11. } else {
  12. diff -Naur phpMyAdmin.orig/libraries/database_interface.lib.php phpMyAdmin/libraries/database_interface.lib.php
  13. --- phpMyAdmin.orig/libraries/database_interface.lib.php 2006-03-08 18:54:29.000000000 +0100
  14. +++ phpMyAdmin/libraries/database_interface.lib.php 2006-09-20 20:10:25.000000000 +0200
  15. @@ -174,6 +174,10 @@
  16. function PMA_DBI_get_dblist($link = null)
  17. {
  18. $dbs_array = PMA_DBI_fetch_result('SHOW DATABASES;', $link);
  19. + foreach ($dbs_array as $key => $db) {
  20. + if ($db == "information_schema")
  21. + unset($dbs_array[$key]);
  22. + }
  23.  
  24. // Before MySQL 4.0.2, SHOW DATABASES could send the
  25. // whole list, so check if we really have access:
  26. @@ -245,7 +249,7 @@
  27.  
  28. $tables = array();
  29.  
  30. - if ( PMA_MYSQL_INT_VERSION >= 50002 ) {
  31. + if ( 0 && PMA_MYSQL_INT_VERSION >= 50002 ) {
  32. // get table information from information_schema
  33. if ( $table ) {
  34. if ( true === $tbl_is_group ) {
  35. @@ -396,7 +400,7 @@
  36. // initialize to avoid errors when there are no databases
  37. $databases = array();
  38.  
  39. - if ( PMA_MYSQL_INT_VERSION >= 50002 ) {
  40. + if ( 0 && PMA_MYSQL_INT_VERSION >= 50002 ) {
  41. // get table information from information_schema
  42. if ( $database ) {
  43. $sql_where_schema = 'WHERE `SCHEMA_NAME` LIKE \''
  44. @@ -496,7 +500,7 @@
  45. {
  46. $columns = array();
  47.  
  48. - if ( PMA_MYSQL_INT_VERSION >= 50002 ) {
  49. + if ( 0 && PMA_MYSQL_INT_VERSION >= 50002 ) {
  50. $sql_wheres = array();
  51. $array_keys = array();
  52.  
  53. diff -Naur phpMyAdmin.orig/libraries/mysql_charsets.lib.php phpMyAdmin/libraries/mysql_charsets.lib.php
  54. --- phpMyAdmin.orig/libraries/mysql_charsets.lib.php 2006-01-17 18:02:30.000000000 +0100
  55. +++ phpMyAdmin/libraries/mysql_charsets.lib.php 2006-09-20 20:06:36.000000000 +0200
  56. @@ -114,7 +114,7 @@
  57. // information_schema database: We know it!
  58. return 'utf8_general_ci';
  59. }
  60. - if ( PMA_MYSQL_INT_VERSION >= 50006 ) {
  61. + if ( 0 && PMA_MYSQL_INT_VERSION >= 50006 ) {
  62. // Since MySQL 5.0.6, we don't have to parse SHOW CREATE DATABASE anymore.
  63. return PMA_DBI_fetch_value('SELECT DEFAULT_COLLATION_NAME FROM information_schema.SCHEMATA WHERE SCHEMA_NAME = \'' . PMA_sqlAddSlashes($db) . '\' LIMIT 1;');
  64. } elseif ( PMA_MYSQL_INT_VERSION >= 40101 ) {
  65.