1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-08 15:47:00 +02:00

SQLite: Better editing in tables without a primary key

This commit is contained in:
Jakub Vrana
2012-07-15 14:55:46 -07:00
parent c2f95e0054
commit 98483e101d
3 changed files with 7 additions and 3 deletions

View File

@@ -252,6 +252,7 @@ if (isset($_GET["sqlite"]) || isset($_GET["sqlite2"])) {
function table_status($name = "") {
$return = array();
foreach (get_rows("SELECT name AS Name, type AS Engine FROM sqlite_master WHERE type IN ('table', 'view')" . ($name != "" ? " AND name = " . q($name) : "")) as $row) {
$row["Oid"] = "t";
$row["Auto_increment"] = "";
$return[$row["Name"]] = $row;
}