I was using the room database and got stuck in the below query.
@Query("SELECT * FROM POI WHERE :columName IN (:fieldValue) ORDER BY ABS(Latitude - :latitude) + ABS(Longitude - :longitude) ASC LIMIT :limit")
List<PoiItems> getNearByLocation(String columName, List<String> fieldValue, double latitude, double longitude, int limit);
When I execute the above query it's not giving me any records. I think the issue is with the dynamic column name. Because when I pass the static column name it gives me the records.
So is there any solution regarding this?
Any help would be grateful.