mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +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
|
* @since 4.6.7
|
||||||
*/
|
*/
|
||||||
public static int getTypeOfNull(final PreparedStatement ps, final int paramIndex) {
|
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;
|
int sqlType = Types.VARCHAR;
|
||||||
|
|
||||||
final ParameterMetaData pmd;
|
final ParameterMetaData pmd;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user