Skip to content

Commit

Permalink
Fix ValueBinder functionality to match methods comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Cory Thompson committed Jan 25, 2017
1 parent b420775 commit c9e5fb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Database/ValueBinder.php
Expand Up @@ -67,8 +67,8 @@ public function bind($param, $value, $type = 'string')
public function placeholder($token)
{
$number = $this->_bindingsCount++;
if ($token[0] !== ':' || $token !== '?') {
$token = sprintf(':c%s', $number);
if ($token[0] !== ':' && $token !== '?') {
$token = sprintf(':%s%s', $token, $number);
}

return $token;
Expand Down

0 comments on commit c9e5fb9

Please sign in to comment.