Commit 4f697081 authored by xjm's avatar xjm

Issue #2475177 by amateescu: SQLite: Fix system\Tests\Database\FetchTest

parent db27d795
...@@ -356,10 +356,17 @@ public function valid() { ...@@ -356,10 +356,17 @@ public function valid() {
return isset($this->currentRow); return isset($this->currentRow);
} }
/* Implementations of StatementInterface. */ /**
* {@inheritdoc}
*/
public function rowCount() { public function rowCount() {
return $this->rowCount; // SELECT query should not use the method.
if ($this->allowRowCount) {
return $this->rowCount;
}
else {
throw new RowCountException();
}
} }
public function fetch($fetch_style = NULL, $cursor_orientation = \PDO::FETCH_ORI_NEXT, $cursor_offset = NULL) { public function fetch($fetch_style = NULL, $cursor_orientation = \PDO::FETCH_ORI_NEXT, $cursor_offset = NULL) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment