mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
enhance mock
This commit is contained in:
@@ -174,6 +174,10 @@ public class MockPreparedStatement extends MockStatement implements PreparedStat
|
||||
if (closed) {
|
||||
throw new SQLException();
|
||||
}
|
||||
|
||||
if (this.mockConnection != null && this.mockConnection.isClosed()) {
|
||||
throw new SQLException("No operations allowed after connection closed.");
|
||||
}
|
||||
|
||||
parameters.clear();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user