diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-09-18 15:09:57 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2014-09-18 15:09:57 +0200 |
commit | a85f0ae2da4344826ee04f79bc362eb5d1a86f67 (patch) | |
tree | 6009e223a15a7fe5321a2bc2a6d0cd8f2b677fb6 /tests/lib/db.php | |
parent | 0c03b2bdd5fd8b94e7fad657591bdc3788b99157 (diff) | |
download | nextcloud-server-a85f0ae2da4344826ee04f79bc362eb5d1a86f67.tar.gz nextcloud-server-a85f0ae2da4344826ee04f79bc362eb5d1a86f67.zip |
Fix ILIKE without wildcards for oracle
Diffstat (limited to 'tests/lib/db.php')
-rw-r--r-- | tests/lib/db.php | 4 |
1 files changed, 4 insertions, 0 deletions
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() { |