diff options
-rw-r--r-- | lib/db.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/db.php b/lib/db.php index ab4364299c4..cf352fe9fb0 100644 --- a/lib/db.php +++ b/lib/db.php @@ -733,6 +733,11 @@ class DoctrineStatementWrapper { * provide numRows */ public function numRows() { + $type = OC_Config::getValue( "dbtype", "sqlite" ); + if ($type == 'oci') { + // OCI doesn't have a queryString, just do a rowCount for now + return $this->statement->rowCount(); + } $regex = '/^SELECT\s+(?:ALL\s+|DISTINCT\s+)?(?:.*?)\s+FROM\s+(.*)$/i'; $queryString = $this->statement->getWrappedStatement()->queryString; if (preg_match($regex, $queryString, $output) > 0) { |