File tree 1 file changed +4
-2
lines changed
spring-jdbc/src/main/java/org/springframework/jdbc/core
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 {
64
64
65
65
/**
66
66
* 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.
68
69
* <p>The default is "false", trying {@code getParameterType} calls first and falling back to
69
70
* {@link PreparedStatement#setNull} / {@link PreparedStatement#setObject} calls based on well-known
70
71
* behavior of common databases. Spring records JDBC drivers with non-working {@code getParameterType}
71
72
* implementations and won't attempt to call that method for that driver again, always falling back.
72
73
* <p>Consider switching this flag to "true" if you experience misbehavior at runtime, e.g. with
73
74
* 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).
75
76
*/
76
77
public static final String IGNORE_GETPARAMETERTYPE_PROPERTY_NAME = "spring.jdbc.getParameterType.ignore" ;
77
78
79
+
78
80
static final boolean shouldIgnoreGetParameterType = SpringProperties .getFlag (IGNORE_GETPARAMETERTYPE_PROPERTY_NAME );
79
81
80
82
static final Set <String > driversWithNoSupportForGetParameterType =
You can’t perform that action at this time.
0 commit comments