Skip to content

Commit

Permalink
Make LIKE %...% as default operator
Browse files Browse the repository at this point in the history
Signed-off-by: Liviu-Mihail Concioiu <[email protected]>
  • Loading branch information
liviuconcioiu committed Jan 4, 2025
1 parent 58f7393 commit 58bdf39
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libraries/classes/Types.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ public function getEnumOperators()
public function getTextOperators()
{
return [
'LIKE',
'LIKE %...%',
'LIKE',
'NOT LIKE',
'NOT LIKE %...%',
'=',
Expand Down
4 changes: 2 additions & 2 deletions test/classes/TypesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ public function testGetEnumOperators(): void
public function testgetTextOperators(): void
{
self::assertSame([
'LIKE',
'LIKE %...%',
'LIKE',
'NOT LIKE',
'NOT LIKE %...%',
'=',
Expand Down Expand Up @@ -166,8 +166,8 @@ public static function providerForGetTypeOperators(): array
'CHAR',
true,
[
'LIKE',
'LIKE %...%',
'LIKE',
'NOT LIKE',
'NOT LIKE %...%',
'=',
Expand Down

0 comments on commit 58bdf39

Please sign in to comment.