* @throws StandardException
*/
protected void checkPositionedStatement(String cursorName, String psName)
throws StandardException {
ExecPreparedStatement ps = getPreparedStatement();
if (ps == null)
return;
LanguageConnectionContext lcc = getLanguageConnectionContext();
CursorActivation cursorActivation = lcc.lookupCursorActivation(cursorName);
if (cursorActivation != null)
{
// check we are compiled against the correct cursor
if (!psName.equals(cursorActivation.getPreparedStatement().getObjectName())) {
// our prepared statement is now invalid since there
// exists another cursor with the same name but a different
// statement.
ps.makeInvalid(DependencyManager.CHANGED_CURSOR, lcc);
}
}
}