summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--it_dbi_postgres.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it_dbi_postgres.class b/it_dbi_postgres.class
index e40729b..9192948 100644
--- a/it_dbi_postgres.class
+++ b/it_dbi_postgres.class
@@ -39,7 +39,7 @@ function replace($tags = [])
$escaped = $this->escape_name($k);
$strings[] = $escaped . '= EXCLUDED.' . $escaped;
}
- $this->insert($tags, "INSERT", ' ON CONFLICT (' . $this->escape_name($this->_p['keyfield']) . ') DO UPDATE SET ' . implode(', ', $strings));
+ $this->insert(array_merge($tags, [' ON CONFLICT (' . $this->escape_name($this->_p['keyfield']) . ') DO UPDATE SET ' . implode(', ', $strings)]));
}
function _tables($p = array())