V Narayanan wrote: > Hi, > I am working on StatementEventListeners as part of providing JDBC4.0 > support to derby. > > The driver calls the statementErrorOccurred method on all > StatementEventListeners registered on the connection when it detects > that a PreparedStatement is invalid. > > One situation when this happens is when the connection is closed. > what other circumstances can make the PreparedStatement invalid?
When the statement used to create the PreparedStatement becomes invalid due to DDL. I think this will occur the first time the statement is executed after the DDL. Dan.
