Skip to content

Commit

Permalink
forced bind value instead of bind parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
h2lsoft committed May 28, 2020
1 parent bf60410 commit 641ec23
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/DBManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,13 +184,9 @@ public function query($sql, $binds=[])
foreach($binds as $bind => $value)
{
if(preg_match("/ID$/", $bind))
{
$stmt->bindValue($bind, $value, PDO::PARAM_INT);
}
else
{
$stmt->bindValue($bind, $value);
}
}
$stmt->execute();
$this->query_stack[++$this->query_id] = $stmt;
Expand Down

0 comments on commit 641ec23

Please sign in to comment.