From 159efa8bd4a5437bd2b028d40910132fd22702f1 Mon Sep 17 00:00:00 2001 From: Bart Visscher Date: Wed, 12 Jun 2013 18:48:53 +0200 Subject: OCI doesn't have a queryString --- lib/db.php | 5 +++++ 1 file changed, 5 insertions(+) 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) { -- cgit v1.2.3