Fixed #11722 -- iexact=F() produced invalid SQL
Proof-of-concept fix for #16731

Implemented only for SQLite and PostgreSQL, and only for startswith
and istartswith lookups.