Closed roxblnfk closed 2 years ago
No response
This request
$searchQuery = '%foo?+%'; $user ->andWhere([ '@or' => [ ['@and' => [['foo' => ['like' => $searchQuery]]]], ['@and' => [['bar' => ['like' => $searchQuery]]]], ['@and' => [['baz' => true]]], ], ]);
throws error MySQL server version for the right syntax to use near '%foo'%fooTRUE+%'+%'+%'
MySQL server version for the right syntax to use near '%foo'%fooTRUE+%'+%'+%'
Temporary solution looks like that:
$searchQuery = 'foo?'; $searchQuery= new Fragment("'" . $searchQuery. "'");
database 2.0 PHP 8.1
No duplicates 🥲.
Database
No response
What happened?
This request
throws error
MySQL server version for the right syntax to use near '%foo'%fooTRUE+%'+%'+%'
Temporary solution looks like that:
Version