Merge pull request #12914 from MPLew-is/master

Use correct-case table name in message for successful rename
This commit is contained in:
Michal Čihař 2017-01-23 10:46:09 +01:00 committed by GitHub
commit 989a34dc89

View File

@ -2083,8 +2083,15 @@ function PMA_moveOrCopyTable($db, $table)
$old = Util::backquote($db) . '.'
. Util::backquote($table);
$message->addParam($old);
$new_name = $_REQUEST['new_name'];
if ($GLOBALS['dbi']->getLowerCaseNames() === '1') {
$new_name = strtolower($new_name);
}
$new = Util::backquote($_REQUEST['target_db']) . '.'
. Util::backquote($_REQUEST['new_name']);
. Util::backquote($new_name);
$message->addParam($new);
/* Check: Work on new table or on old table? */