1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-09 08:06:59 +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:
jakubvrana
2009-10-13 12:47:53 +00:00
parent 4a56170707
commit 4bf68cdc32

View File

@@ -25,7 +25,10 @@ SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO';
}
if ($_POST["format"] == "sql") {
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 = "";
if ($_POST["routines"]) {