@@ -66,12 +66,11 @@ public abstract class StatementCreatorUtils {
66
66
* completely, i.e. to never even attempt to retrieve {@link PreparedStatement#getParameterMetaData()}
67
67
* for {@link StatementCreatorUtils#setNull} calls.
68
68
* <p>The default is "false", trying {@code getParameterType} calls first and falling back to
69
- * {@link PreparedStatement#setNull} / {@link PreparedStatement#setObject} calls based on well-known
70
- * behavior of common databases. Spring records JDBC drivers with non-working {@code getParameterType}
71
- * implementations and won't attempt to call that method for that driver again, always falling back.
72
- * <p>Consider switching this flag to "true" if you experience misbehavior at runtime, e.g. with
73
- * a connection pool setting back the {@link PreparedStatement} instance in case of an exception
74
- * thrown from {@code getParameterType} (as reported on JBoss AS 7).
69
+ * {@link PreparedStatement#setNull} / {@link PreparedStatement#setObject} calls based on
70
+ * well-known behavior of common databases.
71
+ * <p>Consider switching this flag to "true" if you experience misbehavior at runtime,
72
+ * e.g. with connection pool issues in case of an exception thrown from {@code getParameterType}
73
+ * (as reported on JBoss AS 7) or in case of performance problems (as reported on PostgreSQL).
75
74
*/
76
75
public static final String IGNORE_GETPARAMETERTYPE_PROPERTY_NAME = "spring.jdbc.getParameterType.ignore" ;
77
76
@@ -266,7 +265,7 @@ private static void setNull(PreparedStatement ps, int paramIndex, int sqlType, @
266
265
}
267
266
else if (databaseProductName .startsWith ("DB2" ) ||
268
267
jdbcDriverName .startsWith ("jConnect" ) ||
269
- jdbcDriverName .startsWith ("SQLServer" )||
268
+ jdbcDriverName .startsWith ("SQLServer" ) ||
270
269
jdbcDriverName .startsWith ("Apache Derby" )) {
271
270
sqlTypeToUse = Types .VARCHAR ;
272
271
}
0 commit comments