[hibernate/hibernate-orm] a0bf95: HHH-18581 Introduce `supportsBindingNullSqlTypeFor...
by Yanming Zhou
Branch: refs/heads/6.6
Home: https://github.com/hibernate/hibernate-orm
Commit: a0bf95e68dff8d64c358da0432528f1cc1e9be7e
https://github.com/hibernate/hibernate-orm/commit/a0bf95e68dff8d64c358da0...
Author: Yanming Zhou <zhouyanming(a)gmail.com>
Date: 2025-06-30 (Mon, 30 Jun 2025)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/dialect/Dialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/H2Dialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/MySQLDialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/PostgreSQLDialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/SQLServerDialect.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/jdbc/ObjectNullResolvingJdbcType.java
A hibernate-core/src/test/java/org/hibernate/orm/test/typedescriptor/NullTest.java
Log Message:
-----------
HHH-18581 Introduce `supportsBindingNullSqlTypeForSetNull()` and `supportsBindingNullForSetObject()` for `Dialect` to optimize binding null
The method `PreparedStatement.getParameterMetaData().getParameterType(int)` call is expensive for some JDBC driver such as pgJDBC, we should avoid it if the driver supports binding `Types.NULL` for `setNull()` or `null` for `setObject()`.
To unsubscribe from these emails, change your notification settings at https://github.com/hibernate/hibernate-orm/settings/notifications
2 months, 3 weeks