mirror of
https://gitee.com/dromara/hutool.git
synced 2025-04-24 18:04:54 +08:00
getTypeOfNull pmd = ps.getParameterMetaData() NPE Optimization 空指针优化
This commit is contained in:
parent
d6ac2ef4bc
commit
9f12f3d991
@ -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