Skip to content

Commit 2654dbf

Browse files
committed
Relaxed procedure existence check on Oracle (for non-exposed synonyms)
Issue: SPR-16478 (cherry picked from commit fc93f99)
1 parent 1444094 commit 2654dbf

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

spring-jdbc/src/main/java/org/springframework/jdbc/core/metadata/GenericCallMetaDataProvider.java

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2017 the original author or authors.
2+
* Copyright 2002-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -37,6 +37,7 @@
3737
* This class can be extended to provide database specific behavior.
3838
*
3939
* @author Thomas Risberg
40+
* @author Juergen Hoeller
4041
* @since 2.5
4142
*/
4243
public class GenericCallMetaDataProvider implements CallMetaDataProvider {
@@ -343,6 +344,12 @@ else if (found.isEmpty()) {
343344
"' - package name should be specified separately using '.withCatalogName(\"" +
344345
packageName + "\")'");
345346
}
347+
else if ("Oracle".equals(databaseMetaData.getDatabaseProductName())) {
348+
if (logger.isDebugEnabled()) {
349+
logger.debug("Oracle JDBC driver did not return procedure/function/signature for '" +
350+
metaDataProcedureName + "' - assuming a non-exposed synonym");
351+
}
352+
}
346353
else {
347354
throw new InvalidDataAccessApiUsageException(
348355
"Unable to determine the correct call signature - no " +

0 commit comments

Comments
 (0)