diff options
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); |