throw StandardException.newException(SQLState.NO_SAVEPOINT_IN_TRIGGER);
if (savepointStatementType == 1) { //this is set savepoint
if (savepointName.startsWith("SYS")) //to enforce DB2 restriction which is savepoint name can't start with SYS
throw StandardException.newException(SQLState.INVALID_SCHEMA_SYS, "SYS");
lcc.languageSetSavePoint(savepointName, savepointName);
} else if (savepointStatementType == 2) { //this is rollback savepoint
lcc.internalRollbackToSavepoint(savepointName,true, savepointName);
} else { //this is release savepoint
lcc.releaseSavePoint(savepointName, savepointName);
}