Fix sql filters for empty strings