summaryrefslogtreecommitdiff
path: root/it_dbi_postgres.class
diff options
context:
space:
mode:
authorNathan Gass2021-01-06 17:40:06 +0100
committerNathan Gass2021-01-06 17:40:06 +0100
commit11f530c6d129e0ff14a37445d28422ce5bc5f1e2 (patch)
tree22123af78d13272d80c230175263cad004104b73 /it_dbi_postgres.class
parent3bc45983207d43f9c80ef08e2ef28064f57e19e9 (diff)
downloaditools-11f530c6d129e0ff14a37445d28422ce5bc5f1e2.tar.gz
itools-11f530c6d129e0ff14a37445d28422ce5bc5f1e2.tar.bz2
itools-11f530c6d129e0ff14a37445d28422ce5bc5f1e2.zip
use numeric key for suffix instead of extra argument
Diffstat (limited to 'it_dbi_postgres.class')
-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())