Prefer ILIKE over LIKE operator on PostgreSQL servers, for auto-generated queries, to overcome errors with double columns. See https://www.heidisql.com/forum.php?t=36500

This commit is contained in:
Ansgar Becker
2020-07-02 14:00:36 +02:00
parent a7f9635c39
commit 7abc1d1f67
3 changed files with 48 additions and 23 deletions

View File

@ -945,7 +945,7 @@ begin
if IsRegExp then
SQL := SQL + 'LOWER(CAST('+Column+' AS TEXT)) SIMILAR TO ' + esc(FindTextJokers) + ' OR '
else
SQL := SQL + 'LOWER(CAST('+Column+' AS TEXT)) LIKE ' + esc(FindTextJokers) + ' OR ';
SQL := SQL + 'CAST('+Column+' AS TEXT) ILIKE ' + esc(FindTextJokers) + ' OR ';
end;
ngSQLite: begin
if IsRegExp then