mirror of
https://github.com/vrana/adminer.git
synced 2025-08-16 03:24:01 +02:00
PostgreSQL: Avoid exporting empty sequence last value
This commit is contained in:
@@ -777,7 +777,7 @@ AND typelem = 0"
|
||||
: "SELECT * FROM $sequence_name"
|
||||
));
|
||||
$sequences[] = ($style == "DROP+CREATE" ? "DROP SEQUENCE IF EXISTS $sequence_name;\n" : "")
|
||||
. "CREATE SEQUENCE $sequence_name INCREMENT $sq[increment_by] MINVALUE $sq[min_value] MAXVALUE $sq[max_value] START " . ($auto_increment ? $sq['last_value'] : 1) . " CACHE $sq[cache_value];";
|
||||
. "CREATE SEQUENCE $sequence_name INCREMENT $sq[increment_by] MINVALUE $sq[min_value] MAXVALUE $sq[max_value]" . ($auto_increment && $sq['last_value'] ? " START $sq[last_value]" : "") . " CACHE $sq[cache_value];";
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -4,6 +4,7 @@ Add DB version to comment in export
|
||||
Support PHP 8 in create table (regression from 4.7.9)
|
||||
MySQL 8: Fix EXPLAIN in SQL command
|
||||
PostgreSQL: Create PRIMARY KEY for auto increment columns
|
||||
PostgreSQL: Avoid exporting empty sequence last value
|
||||
PostgreSQL PDO: Do not select NULL function for false values in edit
|
||||
|
||||
Adminer 4.7.9 (released 2021-02-07):
|
||||
|
Reference in New Issue
Block a user