diff --git a/ChangeLog b/ChangeLog index b923d86c1..c0a447e65 100755 --- a/ChangeLog +++ b/ChangeLog @@ -8,6 +8,8 @@ $Source$ 2003-11-22 Marc Delisle * tbl_properties_operations.php: display "Add constraints" only if there are foreign keys in current table + * libraries/common.lib.php: revert back to previous logic at line 1108 + because of regex problem (when only_db is used) 2003-11-21 Marc Delisle * tbl_move_copy.php: typo about constraints diff --git a/libraries/common.lib.php b/libraries/common.lib.php index 38451d0e4..8a5b72fa2 100644 --- a/libraries/common.lib.php +++ b/libraries/common.lib.php @@ -1105,7 +1105,8 @@ h1 {font-family: sans-serif; font-size: large; font-weight: bold} continue; } - if ($is_show_dbs && preg_match('@(^|[^\])(_|%)@', $dblist[$i])) { + //if ($is_show_dbs && preg_match('@(^|[^\])(_|%)@', $dblist[$i])) { + if ($is_show_dbs && ereg('(^|[^\])(_|%)', $dblist[$i])) { $local_query = 'SHOW DATABASES LIKE \'' . $dblist[$i] . '\''; $rs = PMA_mysql_query($local_query, $dbh); // "SHOW DATABASES" statement is disabled @@ -1949,4 +1950,4 @@ h1 {font-family: sans-serif; font-size: large; font-weight: bold} } // end if: minimal common.lib needed? } // $__PMA_COMMON_LIB__ -?> \ No newline at end of file +?>