regex problem when only_db is used
This commit is contained in:
@@ -8,6 +8,8 @@ $Source$
|
||||
2003-11-22 Marc Delisle <lem9@users.sourceforge.net>
|
||||
* 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 <lem9@users.sourceforge.net>
|
||||
* tbl_move_copy.php: typo about constraints
|
||||
|
@@ -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__
|
||||
?>
|
||||
?>
|
||||
|
Reference in New Issue
Block a user