File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/main/java/com/microsoft/sqlserver/jdbc Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -271,7 +271,7 @@ private void checkClosed() throws SQLServerException {
271271 private static final String INDEX_INFO_QUERY = "SELECT db_name() AS TABLE_CAT, " +
272272 "sch.name AS TABLE_SCHEM, " +
273273 "t.name AS TABLE_NAME, " +
274- "i.is_unique AS NON_UNIQUE, " +
274+ "CASE WHEN i.is_unique = 1 THEN 0 ELSE 1 END AS NON_UNIQUE, " +
275275 "t.name AS INDEX_QUALIFIER, " +
276276 "i.name AS INDEX_NAME, " +
277277 "i.type AS TYPE, " +
@@ -295,7 +295,7 @@ private void checkClosed() throws SQLServerException {
295295 private static final String INDEX_INFO_QUERY_DW = "SELECT db_name() AS TABLE_CAT, " +
296296 "sch.name AS TABLE_SCHEM, " +
297297 "t.name AS TABLE_NAME, " +
298- "i.is_unique AS NON_UNIQUE, " +
298+ "CASE WHEN i.is_unique = 1 THEN 0 ELSE 1 END AS NON_UNIQUE, " +
299299 "t.name AS INDEX_QUALIFIER, " +
300300 "i.name AS INDEX_NAME, " +
301301 "i.type AS TYPE, " +
You can’t perform that action at this time.
0 commit comments