Skip to content

Commit d2b3778

Browse files
committed
Fix Postgres replace command to work new way of storing binds.
1 parent 4a18864 commit d2b3778

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

system/Database/Postgre/Builder.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,14 @@ public function replace($set = null, $returnSQL = false)
162162

163163
$table = $this->QBFrom[0];
164164

165-
$set = $this->binds;
165+
$set = $this->binds;
166+
167+
// We need to grab out the actual values from
168+
// the way binds are stored with escape flag.
169+
array_walk($set, function (&$item) {
170+
$item = $item[0];
171+
});
172+
166173
$keys = array_keys($set);
167174
$values = array_values($set);
168175

0 commit comments

Comments
 (0)