Browse Source

Statement decorator fetchColumn() fix.

Eugene Ritter 8 years ago
parent
commit
d1cdee7c2f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Database/Statement/StatementDecorator.php

+ 1 - 1
src/Database/Statement/StatementDecorator.php

@@ -228,7 +228,7 @@ class StatementDecorator implements StatementInterface, Countable, IteratorAggre
      */
     public function fetchColumn($position)
     {
-        $result = $this->_statement->fetch(static::FETCH_TYPE_NUM);
+        $result = $this->fetch(static::FETCH_TYPE_NUM);
         if (isset($result[$position])) {
             return $result[$position];
         };