Relaxed procedure existence check on Oracle (for non-exposed synonyms)
Issue: SPR-16478
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2002-2017 the original author or authors.
|
* Copyright 2002-2018 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -38,6 +38,7 @@ import org.springframework.util.StringUtils;
|
|||||||
* This class can be extended to provide database specific behavior.
|
* This class can be extended to provide database specific behavior.
|
||||||
*
|
*
|
||||||
* @author Thomas Risberg
|
* @author Thomas Risberg
|
||||||
|
* @author Juergen Hoeller
|
||||||
* @since 2.5
|
* @since 2.5
|
||||||
*/
|
*/
|
||||||
public class GenericCallMetaDataProvider implements CallMetaDataProvider {
|
public class GenericCallMetaDataProvider implements CallMetaDataProvider {
|
||||||
@@ -351,6 +352,12 @@ public class GenericCallMetaDataProvider implements CallMetaDataProvider {
|
|||||||
"' - package name should be specified separately using '.withCatalogName(\"" +
|
"' - package name should be specified separately using '.withCatalogName(\"" +
|
||||||
packageName + "\")'");
|
packageName + "\")'");
|
||||||
}
|
}
|
||||||
|
else if ("Oracle".equals(databaseMetaData.getDatabaseProductName())) {
|
||||||
|
if (logger.isDebugEnabled()) {
|
||||||
|
logger.debug("Oracle JDBC driver did not return procedure/function/signature for '" +
|
||||||
|
metaDataProcedureName + "' - assuming a non-exposed synonym");
|
||||||
|
}
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
throw new InvalidDataAccessApiUsageException(
|
throw new InvalidDataAccessApiUsageException(
|
||||||
"Unable to determine the correct call signature - no " +
|
"Unable to determine the correct call signature - no " +
|
||||||
|
|||||||
Reference in New Issue
Block a user