File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
spring-jdbc/src/main/java/org/springframework/jdbc/core Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff 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 =
You can’t perform that action at this time.
0 commit comments