Commit 4f697081 authored by xjm's avatar xjm

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

parent db27d795
......@@ -356,11 +356,18 @@ public function valid() {
return isset($this->currentRow);
}
/* Implementations of StatementInterface. */
/**
* {@inheritdoc}
*/
public function 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) {
if (isset($this->currentRow)) {
......
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