Skip to content

Commit

Permalink
Do not use "distinct" keyword when retrieving data from MS SQL Server
Browse files Browse the repository at this point in the history
  • Loading branch information
Armenak Grigoryan committed Mar 22, 2020
1 parent cd13df7 commit d1fbf50
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ public static List<String> sampleData(final IDBFactory factory, final MatchMetaD
String querySample = "";
String select = "SELECT ";

if (!metaData.getColumnType().equals("CLOB")) {


if (!metaData.getColumnType().equals("CLOB") && !factory.getVendorName().equals("mssql")) {
select = select + "DISTINCT ";
}

Expand Down

0 comments on commit d1fbf50

Please sign in to comment.