mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
fix sql bug
This commit is contained in:
parent
9029b10a52
commit
b0ade3f1d6
@ -6,7 +6,11 @@
|
|||||||
## 5.1.0
|
## 5.1.0
|
||||||
|
|
||||||
### 新特性
|
### 新特性
|
||||||
|
* 【core 】 新增WatchServer(issue#440@Github)
|
||||||
|
|
||||||
|
|
||||||
### Bug修复
|
### Bug修复
|
||||||
|
* 【db 】 修复SqlExecutor.callQuery关闭Statement导致的问题(issue#I16981@Gitee)
|
||||||
|
|
||||||
-------------------------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -92,13 +92,7 @@ public class SqlExecutor {
|
|||||||
* @since 4.1.4
|
* @since 4.1.4
|
||||||
*/
|
*/
|
||||||
public static ResultSet callQuery(Connection conn, String sql, Object... params) throws SQLException {
|
public static ResultSet callQuery(Connection conn, String sql, Object... params) throws SQLException {
|
||||||
CallableStatement proc = null;
|
return StatementUtil.prepareCall(conn, sql, params).executeQuery();
|
||||||
try {
|
|
||||||
proc = StatementUtil.prepareCall(conn, sql, params);
|
|
||||||
return proc.executeQuery();
|
|
||||||
} finally {
|
|
||||||
DbUtil.close(proc);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user