From 769212a9a025a58a5b2189eb2461a01e0ece6d36 Mon Sep 17 00:00:00 2001 From: Bart Visscher Date: Mon, 24 Jun 2013 18:15:02 +0200 Subject: [PATCH] numRows doesn't work with Oracle --- tests/lib/db.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/lib/db.php b/tests/lib/db.php index 60331a23295..18b7340ec9b 100644 --- a/tests/lib/db.php +++ b/tests/lib/db.php @@ -94,7 +94,7 @@ class Test_DB extends PHPUnit_Framework_TestCase { $query = OC_DB::prepare('SELECT * FROM `*PREFIX*'.$this->table3.'`'); $result = $query->execute(); $this->assertTrue((bool)$result); - $this->assertEquals('4', $result->numRows()); + $this->assertEquals('4', count($result->fetchAll())); } public function testinsertIfNotExistDontOverwrite() {