From a85f0ae2da4344826ee04f79bc362eb5d1a86f67 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 18 Sep 2014 15:09:57 +0200 Subject: Fix ILIKE without wildcards for oracle --- tests/lib/db.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests') diff --git a/tests/lib/db.php b/tests/lib/db.php index d4270737d86..fb673b8092b 100644 --- a/tests/lib/db.php +++ b/tests/lib/db.php @@ -282,6 +282,10 @@ class Test_DB extends PHPUnit_Framework_TestCase { $query = OC_DB::prepare("SELECT * FROM `$table` WHERE `fullname` ILIKE ?"); $result = $query->execute(array('foobar')); $this->assertCount(1, $result->fetchAll()); + + $query = OC_DB::prepare("SELECT * FROM `$table` WHERE `fullname` ILIKE ?"); + $result = $query->execute(array('foo')); + $this->assertCount(0, $result->fetchAll()); } public function testILIKEWildcard() { -- cgit v1.2.3