aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbrunoais <brunoaiss@gmail.com>2015-03-15 11:40:02 +0000
committerbrunoais <brunoaiss@gmail.com>2015-03-16 11:14:33 +0000
commit298d86009ed77a4b75792a6237f987be271ac43c (patch)
treed4c7fc066c7f6959f6c252e77f1b47d5c35aaf6c
parent5d70f612be113336d6a85146369232c87d1b069b (diff)
downloadforums-298d86009ed77a4b75792a6237f987be271ac43c.tar
forums-298d86009ed77a4b75792a6237f987be271ac43c.tar.gz
forums-298d86009ed77a4b75792a6237f987be271ac43c.tar.bz2
forums-298d86009ed77a4b75792a6237f987be271ac43c.tar.xz
forums-298d86009ed77a4b75792a6237f987be271ac43c.zip
[feature/sql-bool-builder] Added LIKE and NOT_LIKE to the comparations
PHPBB3-13652
-rw-r--r--phpBB/phpbb/db/driver/driver.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/phpBB/phpbb/db/driver/driver.php b/phpBB/phpbb/db/driver/driver.php
index cda2f7f86d..ce69ef6a52 100644
--- a/phpBB/phpbb/db/driver/driver.php
+++ b/phpBB/phpbb/db/driver/driver.php
@@ -854,6 +854,18 @@ abstract class driver implements driver_interface
break;
+ case 'LIKE':
+
+ $condition = $condition[0] . ' ' . $this->sql_like_expression($condition[2]) . ' ';
+
+ break;
+
+ case 'NOT_LIKE':
+
+ $condition = $condition[0] . ' ' . $this->sql_not_like_expression($condition[2]) . ' ';
+
+ break;
+
default:
$condition = implode(' ', $condition);