Skip to content

Commit

Permalink
Merge pull request #12914 from MPLew-is/master
Browse files Browse the repository at this point in the history
Use correct-case table name in message for successful rename
  • Loading branch information
nijel committed Jan 23, 2017
2 parents b2e2e77 + 52fa45e commit 989a34d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion libraries/operations.lib.php
Expand Up @@ -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? */
Expand Down

0 comments on commit 989a34d

Please sign in to comment.