]> git.joonet.de Git - adminer.git/commitdiff
Add truncate_sql to PostgreSQL
authorJakub Vrana <jakub@vrana.cz>
Tue, 6 Feb 2018 15:24:12 +0000 (16:24 +0100)
committerJakub Vrana <jakub@vrana.cz>
Tue, 6 Feb 2018 15:24:12 +0000 (16:24 +0100)
adminer/drivers/pgsql.inc.php
changes.txt

index b8f40bc44321403820a196b3f23f7d2923e52dd5..b27a7aee2e2ed4b2fbe526ae729372131673ef2b 100644 (file)
@@ -747,6 +747,10 @@ AND typelem = 0"
                return rtrim($return, ';');
        }
 
+       function truncate_sql($table) {
+               return "TRUNCATE " . table($table);
+       }
+
        function trigger_sql($table) {
                $status = table_status($table);
                $return = "";
index 87cfb4853b78271f817d90bddaa1adf458151d80..87a03f322f66fab1f73430fad72df0ff8b4f894d 100644 (file)
@@ -5,6 +5,7 @@ PostgreSQL: Support binary files in bytea fields
 PostgreSQL: Cast to string when searching using LIKE (bug #325)
 PostgreSQL: Don't treat interval type as number (bug #474)
 PostgreSQL: Fix condition for selecting no rows
+PostgreSQL: Support TRUNCATE+INSERT export
 
 Adminer 4.6.0 (released 2018-02-05):
 Fix counting selected rows after going back to select page