Skip to content
Permalink
Browse files

Remove semicolon from last case block, so the "else" after it is not …

…counted as a default block. Closes #543
  • Loading branch information...
ansgarbecker committed Feb 20, 2019
1 parent 97d798f commit 107a933eebf49a2ac2b5d6b793e2df46eb834998
Showing with 5 additions and 3 deletions.
  1. +5 −3 source/tabletools.pas
@@ -897,13 +897,15 @@ procedure TfrmTableTools.DoFind(DBObj: TDBObject);
else
SQL := SQL + 'CONVERT('+Column+' USING '+DBObj.Connection.CharacterSet+') LIKE ' + esc(FindTextJokers) + ' OR ';
end;
ngMSSQL:
ngMSSQL: begin
SQL := SQL + Column+' LIKE ' + esc(FindTextJokers) + ' OR ';
ngPgSQL:
end;
ngPgSQL: begin
if IsRegExp then
SQL := SQL + 'CAST('+Column+' AS TEXT) SIMILAR TO ' + esc(FindTextJokers) + ' OR ';
SQL := SQL + 'CAST('+Column+' AS TEXT) SIMILAR TO ' + esc(FindTextJokers) + ' OR '
else
SQL := SQL + 'CAST('+Column+' AS TEXT) LIKE ' + esc(FindTextJokers) + ' OR ';
end;
end;
end;

0 comments on commit 107a933

Please sign in to comment.
You can’t perform that action at this time.