mirror of
https://gitee.com/dromara/hutool.git
synced 2025-04-24 18:04:54 +08:00
!670 getTypeOfNull pmd = ps.getParameterMetaData() NPE Optimization 空指针优化, 处理: issues/I5ENJP
Merge pull request !670 from dazer007/v6-dev-getParameterMetaData-npe
This commit is contained in:
commit
2716ee0eb2
@ -287,6 +287,8 @@ public class StatementUtil {
|
||||
* @since 4.6.7
|
||||
*/
|
||||
public static int getTypeOfNull(final PreparedStatement ps, final int paramIndex) {
|
||||
Assert.notNull(ps, "ps PreparedStatement must be not null in (getTypeOfNull)!");
|
||||
|
||||
int sqlType = Types.VARCHAR;
|
||||
|
||||
final ParameterMetaData pmd;
|
||||
|
Loading…
Reference in New Issue
Block a user