1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-06 14:46:36 +02:00

SQLite: Do not return unrelated auto_increment

This commit is contained in:
Jakub Vrana
2025-03-31 10:42:53 +02:00
parent 41964badb0
commit 27c688b902

View File

@@ -210,7 +210,7 @@ if (isset($_GET["sqlite"])) {
$row["Rows"] = get_val("SELECT COUNT(*) FROM " . idf_escape($row["Name"]));
$return[$row["Name"]] = $row;
}
foreach (get_rows("SELECT * FROM sqlite_sequence", null, "") as $row) {
foreach (get_rows("SELECT * FROM sqlite_sequence" . ($name != "" ? " WHERE name = " . q($name) : ""), null, "") as $row) {
$return[$row["name"]]["Auto_increment"] = $row["seq"];
}
return $return;