summaryrefslogtreecommitdiffstats
path: root/lib/db.php
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2013-06-12 18:48:53 +0200
committerBart Visscher <bartv@thisnet.nl>2013-06-24 22:38:19 +0200
commit159efa8bd4a5437bd2b028d40910132fd22702f1 (patch)
tree685c0ac8a8e623a60b191b519bdd61c919216023 /lib/db.php
parent6300b95896540dcac145598edf50ec778be1a3eb (diff)
downloadnextcloud-server-159efa8bd4a5437bd2b028d40910132fd22702f1.tar.gz
nextcloud-server-159efa8bd4a5437bd2b028d40910132fd22702f1.zip
OCI doesn't have a queryString
Diffstat (limited to 'lib/db.php')
-rw-r--r--lib/db.php5
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) {