Merge pull request #1234 from ashutoshdhundhara/bug_4458
Bug #4458: Preview doesn't work when adding a new column.
This commit is contained in:
commit
7b38fa7651
@ -325,6 +325,10 @@ function PMA_tryColumnCreationQuery($db, $table, $err_url)
|
||||
);
|
||||
$sql_query = 'ALTER TABLE ' .
|
||||
PMA_Util::backquote($table) . ' ' . $sql_statement . ';';
|
||||
// If there is a request for SQL previewing.
|
||||
if (isset($_REQUEST['preview_sql'])) {
|
||||
PMA_previewSQL($sql_query);
|
||||
}
|
||||
return array($GLOBALS['dbi']->tryQuery($sql_query) , $sql_query);
|
||||
}
|
||||
?>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user