Skip to content

Commit fc93f99

Browse files
committed
Relaxed procedure existence check on Oracle (for non-exposed synonyms)
Issue: SPR-16478
1 parent 8222698 commit fc93f99

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.
@@ -38,6 +38,7 @@
3838
* This class can be extended to provide database specific behavior.
3939
*
4040
* @author Thomas Risberg
41+
* @author Juergen Hoeller
4142
* @since 2.5
4243
*/
4344
public class GenericCallMetaDataProvider implements CallMetaDataProvider {
@@ -351,6 +352,12 @@ else if (found.isEmpty()) {
351352
"' - package name should be specified separately using '.withCatalogName(\"" +
352353
packageName + "\")'");
353354
}
355+
else if ("Oracle".equals(databaseMetaData.getDatabaseProductName())) {
356+
if (logger.isDebugEnabled()) {
357+
logger.debug("Oracle JDBC driver did not return procedure/function/signature for '" +
358+
metaDataProcedureName + "' - assuming a non-exposed synonym");
359+
}
360+
}
354361
else {
355362
throw new InvalidDataAccessApiUsageException(
356363
"Unable to determine the correct call signature - no " +

0 commit comments

Comments
 (0)