Add truncate_sql to PostgreSQL

This commit is contained in:
Jakub Vrana 2018-02-06 16:24:12 +01:00
parent 19653de764
commit b500a46f9a
2 changed files with 5 additions and 0 deletions

View 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 = "";

View 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