mirror of
https://github.com/vrana/adminer.git
synced 2025-08-09 16:17:48 +02:00
Set @adminer_alter with table alter
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1185 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -25,7 +25,10 @@ SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO';
|
|||||||
}
|
}
|
||||||
if ($_POST["format"] == "sql") {
|
if ($_POST["format"] == "sql") {
|
||||||
if ($style) {
|
if ($style) {
|
||||||
echo "USE " . idf_escape($db) . ";\n" . ($style == "CREATE+ALTER" ? "SET @adminer_alter = '';\n" : "") . "\n";
|
echo "USE " . idf_escape($db) . ";\n\n";
|
||||||
|
}
|
||||||
|
if (in_array("CREATE+ALTER", array($style, $_POST["table_style"]))) {
|
||||||
|
echo "SET @adminer_alter = '';\n\n";
|
||||||
}
|
}
|
||||||
$out = "";
|
$out = "";
|
||||||
if ($_POST["routines"]) {
|
if ($_POST["routines"]) {
|
||||||
|
Reference in New Issue
Block a user