From a968b58d5c6d6063bf679ff218a5b0e297c50c79 Mon Sep 17 00:00:00 2001 From: ninadsp Date: Sun, 27 Jun 2010 23:04:18 +0530 Subject: [PATCH] Now shows the sql query too when renaming a database. --- db_operations.php | 1 + js/db_operations.js | 1 + 2 files changed, 2 insertions(+) diff --git a/db_operations.php b/db_operations.php index 9128def0a..6087cdc92 100755 --- a/db_operations.php +++ b/db_operations.php @@ -267,6 +267,7 @@ if (strlen($db) && (! empty($db_rename) || ! empty($db_copy))) { if( $GLOBALS['is_ajax_request'] == true) { $extra_data['newname'] = $newname; + $extra_data['sqlquery'] = PMA_showMessage(NULL, $sql_query); PMA_ajaxResponse($message, $message->isSuccess(), $extra_data); }; } diff --git a/js/db_operations.js b/js/db_operations.js index bddc66a29..ab46a050a 100644 --- a/js/db_operations.js +++ b/js/db_operations.js @@ -30,6 +30,7 @@ $(document).ready(function() { PMA_ajaxShowMessage(data.message); window.parent.db = data.newname; + $("#topmenucontainer").after(data.sqlquery); $("" + PMA_messages['strReloadDatabase'] + "?").dialog({ buttons: {"Yes": function() {