mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 15:47:00 +02:00
PostgreSQL: Display ? instead of -1 rows in table overview (bug #883)
This commit is contained in:
@@ -14,10 +14,12 @@ if ($_GET["script"] == "db") {
|
||||
foreach ($sums + array("Auto_increment" => 0, "Rows" => 0) as $key => $val) {
|
||||
if ($table_status[$key] != "") {
|
||||
$val = format_number($table_status[$key]);
|
||||
json_row("$key-$name", ($key == "Rows" && $val && $table_status["Engine"] == ($jush == "pgsql" ? "table" : "InnoDB")
|
||||
? "~ $val"
|
||||
: $val
|
||||
));
|
||||
if ($val >= 0) {
|
||||
json_row("$key-$name", ($key == "Rows" && $val && $table_status["Engine"] == ($jush == "pgsql" ? "table" : "InnoDB")
|
||||
? "~ $val"
|
||||
: $val
|
||||
));
|
||||
}
|
||||
if (isset($sums[$key])) {
|
||||
// ignore innodb_file_per_table because it is not active for tables created before it was enabled
|
||||
$sums[$key] += ($table_status["Engine"] != "InnoDB" || $key != "Data_free" ? $table_status[$key] : 0);
|
||||
|
Reference in New Issue
Block a user