mirror of
https://github.com/vrana/adminer.git
synced 2025-08-10 08:34:20 +02:00
Fix style
This commit is contained in:
@@ -89,7 +89,7 @@ if ($_POST && !process_fields($row["fields"]) && !$error) {
|
|||||||
}, ARRAY_FILTER_USE_KEY);
|
}, ARRAY_FILTER_USE_KEY);
|
||||||
|
|
||||||
foreach ($params["partition_names"] as $key => $name) {
|
foreach ($params["partition_names"] as $key => $name) {
|
||||||
if ($name === "") {
|
if ($name == "") {
|
||||||
unset($params["partition_names"][$key]);
|
unset($params["partition_names"][$key]);
|
||||||
unset($params["partition_values"][$key]);
|
unset($params["partition_values"][$key]);
|
||||||
}
|
}
|
||||||
@@ -105,11 +105,11 @@ if ($_POST && !process_fields($row["fields"]) && !$error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// $params["partition"] can be expression, not only column
|
// $params["partition"] can be expression, not only column
|
||||||
$partitioning .= "\nPARTITION BY {$params["partition_by"]}({$params["partition"]})";
|
$partitioning .= "\nPARTITION BY $params[partition_by]($params[partition])";
|
||||||
if ($partitions) {
|
if ($partitions) {
|
||||||
$partitioning .= " (" . implode(",", $partitions) . "\n)";
|
$partitioning .= " (" . implode(",", $partitions) . "\n)";
|
||||||
} elseif ($params["partitions"]) {
|
} elseif ($params["partitions"]) {
|
||||||
$partitioning .= " PARTITIONS " . (int)$params["partitions"];
|
$partitioning .= " PARTITIONS " . (+$params["partitions"]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} elseif (preg_match("~partitioned~", $table_status["Create_options"])) {
|
} elseif (preg_match("~partitioned~", $table_status["Create_options"])) {
|
||||||
|
@@ -1116,7 +1116,7 @@ function search_tables() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $table
|
* @param string
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
function get_partitions_info($table) {
|
function get_partitions_info($table) {
|
||||||
|
Reference in New Issue
Block a user