bug fixed resultSet null

This commit is contained in:
wenshao
2012-07-22 01:30:20 +08:00
parent 56c29d3e39
commit a84a96067b
3 changed files with 15 additions and 2 deletions
@@ -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;
}
}