return true; // automatic start
}
+ function insertUpdate($table, $rows, $primary) {
+ global $connection;
+ foreach ($rows as $set) {
+ $update = array();
+ $where = array();
+ foreach ($set as $key => $val) {
+ $update[] = "$key = $val";
+ if (isset($primary[idf_unescape($key)])) {
+ $where[] = "$key = $val";
+ }
+ }
+ if (!(($where && queries("UPDATE " . table($table) . " SET " . implode(", ", $update) . " WHERE " . implode(" AND ", $where)) && $connection->affected_rows)
+ || queries("INSERT INTO " . table($table) . " (" . implode(", ", array_keys($set)) . ") VALUES (" . implode(", ", $set) . ")")
+ )) {
+ return false;
+ }
+ }
+ return true;
+ }
}
PostgreSQL: Fix multi-parameter functions in default values (bug #736)
PostgreSQL PDO: Do not select NULL function for false values in edit
Oracle: Count tables
+Oracle: Import from CSV
SimpleDB, Firebird, ClickHouse: Move to plugin
Adminer 4.7.9 (released 2021-02-07):