regex problem when only_db is used

This commit is contained in:
Marc Delisle
2003-11-22 19:58:01 +00:00
parent cc22130552
commit 096094b74d
2 changed files with 5 additions and 2 deletions

View File

@@ -8,6 +8,8 @@ $Source$
2003-11-22 Marc Delisle <lem9@users.sourceforge.net> 2003-11-22 Marc Delisle <lem9@users.sourceforge.net>
* tbl_properties_operations.php: display "Add constraints" only * tbl_properties_operations.php: display "Add constraints" only
if there are foreign keys in current table 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 <lem9@users.sourceforge.net> 2003-11-21 Marc Delisle <lem9@users.sourceforge.net>
* tbl_move_copy.php: typo about constraints * tbl_move_copy.php: typo about constraints

View File

@@ -1105,7 +1105,8 @@ h1 {font-family: sans-serif; font-size: large; font-weight: bold}
continue; 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] . '\''; $local_query = 'SHOW DATABASES LIKE \'' . $dblist[$i] . '\'';
$rs = PMA_mysql_query($local_query, $dbh); $rs = PMA_mysql_query($local_query, $dbh);
// "SHOW DATABASES" statement is disabled // "SHOW DATABASES" statement is disabled