git-svn-id: http://code.alibabatech.com/svn/druid/trunk@407 b9813039-fb51-4c41-a8b9-e21c2acb5095

This commit is contained in:
wenshao
2011-07-13 05:43:46 +00:00
parent 1eda3abc47
commit e41f47526b
6 changed files with 62 additions and 21 deletions
@@ -60,8 +60,8 @@ public class MockPreparedStatement extends MockStatement implements PreparedStat
@Override
public ResultSet executeQuery() throws SQLException {
if (fakeConnection != null && fakeConnection.getDriver() != null) {
return fakeConnection.getDriver().createResultSet(this);
if (mockConnection != null && mockConnection.getDriver() != null) {
return mockConnection.getDriver().createResultSet(this);
}
return new MockResultSet(this);