Finalizing 3.5.0 release
This commit is contained in:
parent
664fd2fede
commit
7bbe33cffc
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue