Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MySQL: Don't remove partitioning on non-partitioned tables

  • Loading branch information...
commit 944f141bf4521eac3ee526567064e4ae0ee7dc41 1 parent d540023
@vrana authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  adminer/create.inc.php
View
2  adminer/create.inc.php
@@ -80,7 +80,7 @@
? " (" . implode(",", $partitions) . "\n)"
: ($_POST["partitions"] ? " PARTITIONS " . (+$_POST["partitions"]) : "")
);
- } elseif ($TABLE != "" && support("partitioning")) {
+ } elseif (support("partitioning") && ereg("partitioned", $orig_status["Create_options"])) {
$partitioning .= "\nREMOVE PARTITIONING";
}
$message = lang('Table has been altered.');
Please sign in to comment.
Something went wrong with that request. Please try again.