From 11f530c6d129e0ff14a37445d28422ce5bc5f1e2 Mon Sep 17 00:00:00 2001 From: Nathan Gass Date: Wed, 6 Jan 2021 17:40:06 +0100 Subject: use numeric key for suffix instead of extra argument --- it_dbi_postgres.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) -- cgit v1.2.3