]> git.joonet.de Git - adminer.git/commitdiff
PostgreSQL: Use bigserial for bigint auto increment (bug #765, regression from 3...
authorJakub Vrana <jakub@vrana.cz>
Sat, 6 Feb 2021 14:33:50 +0000 (15:33 +0100)
committerJakub Vrana <jakub@vrana.cz>
Sat, 6 Feb 2021 14:33:50 +0000 (15:33 +0100)
adminer/drivers/pgsql.inc.php
changes.txt

index 7437aa435eab80ac63f330e0bc6171e17654309b..577afd4ffaa8a68073a91ca58f77a27e8bd7bf61 100644 (file)
@@ -510,7 +510,7 @@ ORDER BY connamespace, conname") as $row) {
                                $val5 = $val[5];
                                unset($val[5]);
                                if (isset($val[6]) && $field[0] == "") { // auto_increment
-                                       $val[1] = ($val[1] == "bigint" ? " big" : " ") . "serial";
+                                       $val[1] = ($val[1] == " bigint" ? " big" : " ") . "serial";
                                }
                                if ($field[0] == "") {
                                        $alter[] = ($table != "" ? "ADD " : "  ") . implode($val);
index 1f684cd9d6e3bf707289f94fdeaa0650a36e717f..fe7181827eb39987fa57c92543d150508d8e4f5b 100644 (file)
@@ -4,6 +4,7 @@ MySQL: Do not export names in quotes with sql_mode='ANSI_QUOTES' (bug #749)
 PostgreSQL: Export all FKs after all CREATE TABLE (PR #351)
 PostgreSQL: Fix dollar-quoted syntax highlighting (bug #738)
 PostgreSQL: Do not show view definition from other schema (PR #392)
+PostgreSQL: Use bigserial for bigint auto increment (bug #765, regression from 3.0.0)
 PostgreSQL 10: Support GENERATED ALWAYS BY IDENTITY (PR #386)
 MS SQL: Don't truncate comments to 30 chars (PR #376)
 Re-enable PHP warnings (regression from 4.7.8)