mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
getTypeOfNull pmd = ps.getParameterMetaData() NPE Optimization 空指针优化
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user