mirror of
https://gitee.com/dromara/hutool.git
synced 2025-06-28 13:34:09 +08:00
Merge pull request #3936 from yisiliang/v5-master
某些数据库的getParameterMetaData 会返回 NULL,然后导致报错,也需要规避这种情况
This commit is contained in:
commit
ed180873a5
@ -301,6 +301,9 @@ public class StatementUtil {
|
||||
final ParameterMetaData pmd;
|
||||
try {
|
||||
pmd = ps.getParameterMetaData();
|
||||
if (pmd == null) {
|
||||
return sqlType;
|
||||
}
|
||||
sqlType = pmd.getParameterType(paramIndex);
|
||||
} catch (SQLException ignore) {
|
||||
// ignore
|
||||
|
Loading…
Reference in New Issue
Block a user