diff options
author | Ashutosh Dhundhara <ashutoshdhundhara@yahoo.com> | 2014-06-06 21:31:21 +0400 |
---|---|---|
committer | Ashutosh Dhundhara <ashutoshdhundhara@yahoo.com> | 2014-06-06 22:57:39 +0400 |
commit | 99b9e8d83c31112998a2c0479739ce0029cf0f6e (patch) | |
tree | 32638f4fd407e3045787c0b57ee1d641397fa57b /tbl_create.php | |
parent | 27fc59702cc87db2daaf170712d6da57fb30d5f6 (diff) |
RFE#1145: Preview SQL instead of executing it.
Signed-off-by: Ashutosh Dhundhara <ashutoshdhundhara@yahoo.com>
Diffstat (limited to 'tbl_create.php')
-rw-r--r-- | tbl_create.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tbl_create.php b/tbl_create.php index 1b5184c313..70b1488386 100644 --- a/tbl_create.php +++ b/tbl_create.php @@ -55,6 +55,11 @@ $action = 'tbl_create.php'; */ if (isset($_REQUEST['do_save_data'])) { $sql_query = PMA_getTableCreationQuery($db, $table); + + // If there is a request for SQL previewing. + if (isset($_REQUEST['preview_sql'])) { + PMA_previewSQL($sql_query); + } // Executes the query $result = $GLOBALS['dbi']->tryQuery($sql_query); |