]> git.joonet.de Git - adminer.git/commitdiff
SQLite: Don't mark multi-column primary key as auto_increment
authorJakub Vrana <jakub@vrana.cz>
Wed, 28 Aug 2013 15:40:09 +0000 (08:40 -0700)
committerJakub Vrana <jakub@vrana.cz>
Wed, 28 Aug 2013 15:40:09 +0000 (08:40 -0700)
adminer/drivers/sqlite.inc.php

index 8d7c48cddbc8cd849956952a7f4c7bda5ca29e45..e2522e5d311f1eb5ffe1292b30056eabb1303ef0 100644 (file)
@@ -311,8 +311,8 @@ if (isset($_GET["sqlite"]) || isset($_GET["sqlite2"])) {
                                        $return[$primary]["auto_increment"] = false;
                                } elseif (preg_match('~^integer$~i', $type)) {
                                        $return[$name]["auto_increment"] = true;
-                                       $primary = $name;
                                }
+                               $primary = $name;
                        }
                }
                return $return;