Branch: refs/heads/main
Home:
https://github.com/hibernate/hibernate-orm
Commit: 3c4a340c5eb30cec8cba464622e6b9990a825beb
https://github.com/hibernate/hibernate-orm/commit/3c4a340c5eb30cec8cba464...
Author: Yanming Zhou <zhouyanming(a)gmail.com>
Date: 2024-09-13 (Fri, 13 Sep 2024)
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