Skip to content

Commit

Permalink
fix: Fix context data confusion (#54)
Browse files Browse the repository at this point in the history
* fix: Fix context data confusion

* update
  • Loading branch information
sy-records committed May 19, 2021
1 parent 6141729 commit b4517c6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/core/Database/PDOStatementProxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,18 +93,18 @@ public function __call(string $name, array $arguments)
$this->__object->setFetchMode(...$this->setFetchModeContext);
}
if ($this->bindParamContext) {
foreach ($this->bindParamContext as $param => $arguments) {
$this->__object->bindParam($param, ...$arguments);
foreach ($this->bindParamContext as $param => $item) {
$this->__object->bindParam($param, ...$item);
}
}
if ($this->bindColumnContext) {
foreach ($this->bindColumnContext as $column => $arguments) {
$this->__object->bindColumn($column, ...$arguments);
foreach ($this->bindColumnContext as $column => $item) {
$this->__object->bindColumn($column, ...$item);
}
}
if ($this->bindValueContext) {
foreach ($this->bindValueContext as $value => $arguments) {
$this->__object->bindParam($value, ...$arguments);
foreach ($this->bindValueContext as $value => $item) {
$this->__object->bindParam($value, ...$item);
}
}
continue;
Expand Down

0 comments on commit b4517c6

Please sign in to comment.