1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-29 01:00:07 +02:00

Pass primary key to insert_update function

This commit is contained in:
Jakub Vrana
2010-07-22 17:57:26 +02:00
parent 2ad8ab4770
commit 6e50eb8ec0
4 changed files with 12 additions and 18 deletions

View File

@@ -767,10 +767,10 @@ if (!defined("DRIVER")) {
/** Insert or update data in the table
* @param string
* @param array
* @param array
* @param array columns in keys
* @return bool
*/
function insert_update($table, $set, $indexes) {
function insert_update($table, $set, $primary) {
foreach ($set as $key => $val) {
$set[$key] = "$key = $val";
}