Skip to content

Commit

Permalink
Merge pull request #1733 from codeigniter4/postgresEscapeFlags
Browse files Browse the repository at this point in the history
Fix increment and decrement errors with Postgres
  • Loading branch information
lonnieezell authored Feb 17, 2019
2 parents 1d61fb2 + 24e88ec commit 0cd3bff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions system/Database/Postgre/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public function increment(string $column, int $value = 1)

$sql = $this->_update($this->QBFrom[0], [$column => "to_number({$column}, '9999999') + {$value}"]);

return $this->db->query($sql, $this->binds);
return $this->db->query($sql, $this->binds, false);
}

//--------------------------------------------------------------------
Expand All @@ -124,7 +124,7 @@ public function decrement(string $column, int $value = 1)

$sql = $this->_update($this->QBFrom[0], [$column => "to_number({$column}, '9999999') - {$value}"]);

return $this->db->query($sql, $this->binds);
return $this->db->query($sql, $this->binds, false);
}

//--------------------------------------------------------------------
Expand Down

0 comments on commit 0cd3bff

Please sign in to comment.