mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
add testcase & bug fixed for executeQuery return null
This commit is contained in:
@@ -107,6 +107,10 @@ public class DruidPooledStatement extends PoolableWrapper implements Statement {
|
||||
conn.beforeExecute();
|
||||
try {
|
||||
ResultSet rs = stmt.executeQuery(sql);
|
||||
|
||||
if (rs == null) {
|
||||
return rs;
|
||||
}
|
||||
|
||||
DruidPooledResultSet poolableResultSet = new DruidPooledResultSet(this, rs);
|
||||
resultSetTrace.add(poolableResultSet);
|
||||
|
||||
Reference in New Issue
Block a user