mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
bug fixed resultSet null
This commit is contained in:
@@ -77,4 +77,14 @@ public class MockPreparedStatement extends PreparedStatementBase implements Prep
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResultSet getResultSet() throws SQLException {
|
||||
checkOpen();
|
||||
|
||||
if (resultSet == null) {
|
||||
resultSet = this.getConnection().getDriver().createResultSet(this);
|
||||
}
|
||||
|
||||
return resultSet;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user