Finalizing 3.5.0 release

This commit is contained in:
James Agnew 2018-09-17 16:04:52 -04:00
parent 664fd2fede
commit 7bbe33cffc
1 changed files with 2 additions and 1 deletions

View File

@ -42,6 +42,7 @@ public class JdbcUtils {
* Retrieve all index names * Retrieve all index names
*/ */
public static Set<String> getIndexNames(DriverTypeEnum.ConnectionProperties theConnectionProperties, String theTableName) throws SQLException { public static Set<String> getIndexNames(DriverTypeEnum.ConnectionProperties theConnectionProperties, String theTableName) throws SQLException {
DataSource dataSource = Objects.requireNonNull(theConnectionProperties.getDataSource()); DataSource dataSource = Objects.requireNonNull(theConnectionProperties.getDataSource());
Connection connection = dataSource.getConnection(); Connection connection = dataSource.getConnection();
return theConnectionProperties.getTxTemplate().execute(t -> { return theConnectionProperties.getTxTemplate().execute(t -> {
@ -80,7 +81,7 @@ public class JdbcUtils {
while (indexes.next()) { while (indexes.next()) {
String indexName = indexes.getString("INDEX_NAME"); String indexName = indexes.getString("INDEX_NAME");
if (indexName.equalsIgnoreCase(theIndexName)) { if (theIndexName.equalsIgnoreCase(indexName)) {
boolean nonUnique = indexes.getBoolean("NON_UNIQUE"); boolean nonUnique = indexes.getBoolean("NON_UNIQUE");
return !nonUnique; return !nonUnique;
} }