mirror of
https://github.com/vrana/adminer.git
synced 2025-08-09 16:17:48 +02:00
CockroachDB: Recognize unique_rowid() as auto_increment
This commit is contained in:
@@ -464,7 +464,8 @@ ORDER BY a.attnum") as $row
|
|||||||
}
|
}
|
||||||
$row["generated"] = ($row["attgenerated"] == "s" ? "STORED" : "");
|
$row["generated"] = ($row["attgenerated"] == "s" ? "STORED" : "");
|
||||||
$row["null"] = !$row["attnotnull"];
|
$row["null"] = !$row["attnotnull"];
|
||||||
$row["auto_increment"] = $row['attidentity'] || preg_match('~^nextval\(~i', $row["default"]);
|
$row["auto_increment"] = $row['attidentity'] || preg_match('~^nextval\(~i', $row["default"])
|
||||||
|
|| preg_match('~^unique_rowid\(~', $row["default"]); // CockroachDB
|
||||||
$row["privileges"] = array("insert" => 1, "select" => 1, "update" => 1, "where" => 1, "order" => 1);
|
$row["privileges"] = array("insert" => 1, "select" => 1, "update" => 1, "where" => 1, "order" => 1);
|
||||||
if (preg_match('~(.+)::[^,)]+(.*)~', $row["default"], $match)) {
|
if (preg_match('~(.+)::[^,)]+(.*)~', $row["default"], $match)) {
|
||||||
$row["default"] = ($match[1] == "NULL" ? null : idf_unescape($match[1]) . $match[2]);
|
$row["default"] = ($match[1] == "NULL" ? null : idf_unescape($match[1]) . $match[2]);
|
||||||
|
@@ -5,6 +5,7 @@ MySQL: Allow setting default values of json column
|
|||||||
MariaDB: Don't display NULL as default value (regression from 5.0.0)
|
MariaDB: Don't display NULL as default value (regression from 5.0.0)
|
||||||
PostgreSQL PDO: Escape bytea values (bug #218)
|
PostgreSQL PDO: Escape bytea values (bug #218)
|
||||||
CockroachDB: Display version
|
CockroachDB: Display version
|
||||||
|
CockroachDB: Recognize unique_rowid() as auto_increment
|
||||||
MS SQL: Fix editing rows with datetime column in primary key
|
MS SQL: Fix editing rows with datetime column in primary key
|
||||||
CSS: Add dark theme
|
CSS: Add dark theme
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user