Skip to content

Commit 8a6b095

Browse files
committed
Polishing
Issue: SPR-11386
1 parent 6634c19 commit 8a6b095

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: spring-jdbc/src/main/java/org/springframework/jdbc/core/StatementCreatorUtils.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -64,17 +64,19 @@ public abstract class StatementCreatorUtils {
6464

6565
/**
6666
* System property that instructs Spring to ignore {@link java.sql.ParameterMetaData#getParameterType}
67-
* completely, i.e. to never even attempt to retrieve {@link PreparedStatement#getParameterMetaData()}.
67+
* completely, i.e. to never even attempt to retrieve {@link PreparedStatement#getParameterMetaData()}
68+
* for {@link StatementCreatorUtils#setNull} calls.
6869
* <p>The default is "false", trying {@code getParameterType} calls first and falling back to
6970
* {@link PreparedStatement#setNull} / {@link PreparedStatement#setObject} calls based on well-known
7071
* behavior of common databases. Spring records JDBC drivers with non-working {@code getParameterType}
7172
* implementations and won't attempt to call that method for that driver again, always falling back.
7273
* <p>Consider switching this flag to "true" if you experience misbehavior at runtime, e.g. with
7374
* a connection pool setting back the {@link PreparedStatement} instance in case of an exception
74-
* thrown from {@code getParameterType} (e.g. on JBoss AS 7).
75+
* thrown from {@code getParameterType} (as reported on JBoss AS 7).
7576
*/
7677
public static final String IGNORE_GETPARAMETERTYPE_PROPERTY_NAME = "spring.jdbc.getParameterType.ignore";
7778

79+
7880
static final boolean shouldIgnoreGetParameterType = SpringProperties.getFlag(IGNORE_GETPARAMETERTYPE_PROPERTY_NAME);
7981

8082
static final Set<String> driversWithNoSupportForGetParameterType =

0 commit comments

Comments
 (0)