Nullability refinements and related polishing
See gh-32475
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2023 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -88,6 +88,10 @@ public final class CallMetaDataProviderFactory {
|
||||
try {
|
||||
return JdbcUtils.extractDatabaseMetaData(dataSource, databaseMetaData -> {
|
||||
String databaseProductName = JdbcUtils.commonDatabaseName(databaseMetaData.getDatabaseProductName());
|
||||
if (databaseProductName == null) {
|
||||
databaseProductName = "";
|
||||
}
|
||||
|
||||
boolean accessProcedureColumnMetaData = context.isAccessCallParameterMetaData();
|
||||
if (context.isFunction()) {
|
||||
if (!supportedDatabaseProductsForFunctions.contains(databaseProductName)) {
|
||||
|
||||
@@ -438,7 +438,7 @@ public class TableMetaDataContext {
|
||||
this.quoting = StringUtils.hasText(identifierQuoteString);
|
||||
}
|
||||
|
||||
public void appendTo(StringBuilder stringBuilder, String item) {
|
||||
public void appendTo(StringBuilder stringBuilder, @Nullable String item) {
|
||||
if (this.quoting) {
|
||||
stringBuilder.append(this.identifierQuoteString)
|
||||
.append(item).append(this.identifierQuoteString);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2017 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -84,8 +84,9 @@ public class EmbeddedDatabaseFactoryBean extends EmbeddedDatabaseFactory
|
||||
|
||||
@Override
|
||||
public void destroy() {
|
||||
if (this.databaseCleaner != null && getDataSource() != null) {
|
||||
DatabasePopulatorUtils.execute(this.databaseCleaner, getDataSource());
|
||||
DatabasePopulator cleaner = this.databaseCleaner;
|
||||
if (cleaner != null && getDataSource() != null) {
|
||||
DatabasePopulatorUtils.execute(cleaner, getDataSource());
|
||||
}
|
||||
shutdownDatabase();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user