1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-25 07:20:56 +02:00

Fix detecting oid column in PDO_PGSQL

This commit is contained in:
Jakub Vrana
2013-05-23 21:05:45 -07:00
parent 2c381345b4
commit 005c963e2d
4 changed files with 5 additions and 4 deletions

View File

@@ -5,7 +5,7 @@ $indexes = indexes($TABLE);
$fields = fields($TABLE);
$foreign_keys = column_foreign_keys($TABLE);
$oid = "";
if ($table_status["Oid"] == "t") {
if ($table_status["Oid"]) {
$oid = ($jush == "sqlite" ? "rowid" : "oid");
$indexes[] = array("type" => "PRIMARY", "columns" => array($oid));
}