1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-06-07 06:55:25 +02:00

[feature/sql-bool-builder] Added LIKE and NOT_LIKE to the comparations

PHPBB3-13652
This commit is contained in:
brunoais 2015-03-15 11:40:02 +00:00
parent 5d70f612be
commit 298d86009e

View File

@ -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);