diff --git a/src/Table/Search.php b/src/Table/Search.php index 8688f2512b83..bc259e029993 100644 --- a/src/Table/Search.php +++ b/src/Table/Search.php @@ -158,7 +158,7 @@ private function getWhereClause( // (like INT), for a LIKE we always quote the value. MySQL converts // strings to numbers and numbers to strings as necessary // during the comparison - $needsQuoting = preg_match('@char|binary|blob|text|set|date|time|year|uuid@i', $types) === 1 + $needsQuoting = preg_match('@char|binary|blob|inet4|text|set|date|time|year|uuid@i', $types) === 1 || str_contains($funcType, 'LIKE'); // LIKE %...%