aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/db/driver/driver_interface.php
diff options
context:
space:
mode:
authorGeolim4 <contact@geolim4.com>2014-08-08 15:06:12 +0200
committerGeolim4 <contact@geolim4.com>2014-08-08 16:40:33 +0200
commit6b60153ab4ac036bcd4eaaa90806d9898fc1e9a2 (patch)
treed378a9a0aa46968a08a0f20dcbbe4b4e2c049f3a /phpBB/phpbb/db/driver/driver_interface.php
parentf6da2661091a9f068956a23df7e70450cec9ee74 (diff)
downloadforums-6b60153ab4ac036bcd4eaaa90806d9898fc1e9a2.tar
forums-6b60153ab4ac036bcd4eaaa90806d9898fc1e9a2.tar.gz
forums-6b60153ab4ac036bcd4eaaa90806d9898fc1e9a2.tar.bz2
forums-6b60153ab4ac036bcd4eaaa90806d9898fc1e9a2.tar.xz
forums-6b60153ab4ac036bcd4eaaa90806d9898fc1e9a2.zip
[ticket/12671] Possibility to use NOT LIKE expression
PHPBB3-12671
Diffstat (limited to 'phpBB/phpbb/db/driver/driver_interface.php')
-rw-r--r--phpBB/phpbb/db/driver/driver_interface.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/phpBB/phpbb/db/driver/driver_interface.php b/phpBB/phpbb/db/driver/driver_interface.php
index 6722d059a5..8b487c5d42 100644
--- a/phpBB/phpbb/db/driver/driver_interface.php
+++ b/phpBB/phpbb/db/driver/driver_interface.php
@@ -419,6 +419,16 @@ interface driver_interface
public function sql_like_expression($expression);
/**
+ * Correctly adjust NOT LIKE expression for special characters
+ * Some DBMS are handling them in a different way
+ *
+ * @param string $expression The expression to use. Every wildcard is
+ * escaped, except $this->any_char and $this->one_char
+ * @return string A SQL statement like: "NOT LIKE 'bertie_%'"
+ */
+ public function sql_not_like_expression($expression);
+
+ /**
* Explain queries
*
* @param string $mode Available modes: display, start, stop,