<div dir="ltr">I think I found a bug and was wondering if someone could verify this. I am on Windows 10 and tried this with both QGIS 3.16.9 and 3.20.1.<div><br></div><div>I tried the following filter expression on the Natural Earth data set ne_10m_populated_places (<a href="https://www.naturalearthdata.com/http//www.naturalearthdata.com/download/10m/cultural/ne_10m_populated_places.zip">https://www.naturalearthdata.com/http//www.naturalearthdata.com/download/10m/cultural/ne_10m_populated_places.zip</a>). Once loaded into QGIS right mouse click on the layer and select "Properties...", then click on the "Source" tab, click on "Query Builder" and then use this query<div><br></div><div>"NAME" ILIKE '%Bom%'<br></div><div><br></div><div>This works fine. If I export ne_10m_populated_places as a GeoPackage and try the same thing with the GeoPackage version of the layer, I get the error:</div><div><br></div><div>"An error occurred when executing the query, please check the expression syntax."</div></div><div><br></div><div>If I use LIKE instead of ILIKE then it works. It is like ILIKE was not implemented for GeoPackage. Can anyone verify this? I think you can use any vector layer for this test with one that is a shapefile and the other a GeoPackage.</div><div><br></div><div>Thanks,</div><div><br></div><div>Calvin</div><div><br></div></div>