From d2b377896dc472fc19cd58ddc476ec52f13ab88a Mon Sep 17 00:00:00 2001 From: Lonnie Ezell Date: Wed, 23 Jan 2019 00:10:27 -0600 Subject: [PATCH] Fix Postgres replace command to work new way of storing binds. --- system/Database/Postgre/Builder.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/system/Database/Postgre/Builder.php b/system/Database/Postgre/Builder.php index 42e1b512b7fe..8102fb72e5b6 100644 --- a/system/Database/Postgre/Builder.php +++ b/system/Database/Postgre/Builder.php @@ -162,7 +162,14 @@ public function replace($set = null, $returnSQL = false) $table = $this->QBFrom[0]; - $set = $this->binds; + $set = $this->binds; + + // We need to grab out the actual values from + // the way binds are stored with escape flag. + array_walk($set, function (&$item) { + $item = $item[0]; + }); + $keys = array_keys($set); $values = array_values($set);