Skip to content

Commit e0906d3

Browse files
committed
Work around issue with getIndexInfo() on SQL Server
1 parent bfba15b commit e0906d3

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

api/src/org/labkey/api/data/CachedResultSets.java

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,17 @@ public static CachedResultSet create(ResultSet rsIn, boolean cacheMetaData, int
5656
list.add(factory.getRowMap(rs));
5757

5858
// If we have another row, then we're not complete
59-
boolean isComplete = !rs.next();
59+
boolean isComplete = true;
60+
61+
// TODO: Remove this try/catch once SQL Server driver fixes getIndexInfo()
62+
try
63+
{
64+
isComplete = !rs.next();
65+
}
66+
catch (SQLException ignored)
67+
{
68+
// tolerate this for now
69+
}
6070

6171
return new CachedResultSet(md, list, isComplete, stackTrace);
6272
}

0 commit comments

Comments
 (0)