Skip to content

Commit

Permalink
Fix Postgres replace command to work new way of storing binds.
Browse files Browse the repository at this point in the history
  • Loading branch information
lonnieezell committed Jan 23, 2019
1 parent 4a18864 commit d2b3778
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion system/Database/Postgre/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit d2b3778

Please sign in to comment.