diff --git a/includes/database/prefetch.inc b/includes/database/prefetch.inc index f378d35559e..4f2b19d1f3d 100644 --- a/includes/database/prefetch.inc +++ b/includes/database/prefetch.inc @@ -370,7 +370,7 @@ class DatabaseStatementPrefetch implements Iterator, DatabaseStatementInterface } } - public function fetchField($index = 0) { + public function fetchColumn($index = 0) { if (isset($this->currentRow) && isset($this->columnNames[$index])) { // We grab the value directly from $this->data, and format it. $return = $this->currentRow[$this->columnNames[$index]]; @@ -382,6 +382,10 @@ class DatabaseStatementPrefetch implements Iterator, DatabaseStatementInterface } } + public function fetchField($index = 0) { + return $this->fetchColumn($index); + } + public function fetchObject($class_name = NULL, $constructor_args = array()) { if (isset($this->currentRow)) { if (!isset($class_name)) {