Source:
<code>public void clearSPSPlans() throws StandardException{ TabInfoImpl ti=getNonCoreTI(SYSSTATEMENTS_CATALOG_NUM); faultInTabInfo(ti); TransactionController tc=getTransactionExecute(); FormatableBitSet columnToReadSet=new FormatableBitSet(SYSSTATEMENTSRowFactory.SYSSTATEMENTS_COLUMN_COUNT); FormatableBitSet columnToUpdateSet=new FormatableBitSet(SYSSTATEMENTSRowFactory.SYSSTATEMENTS_COLUMN_COUNT); for(int i=0;i<SYSSTATEMENTSRowFactory.SYSSTATEMENTS_COLUMN_COUNT;i++){ if (i+1==SYSSTATEMENTSRowFactory.SYSSTATEMENTS_CONSTANTSTATE) { <START> columnToUpdateSet.set(i); <END> } else { columnToReadSet.set(i); columnToUpdateSet.set(i); } } DataValueDescriptor[] rowTemplate = new DataValueDescriptor[SYSSTATEMENTSRowFactory.SYSSTATEMENTS_COLUMN_COUNT]; DataValueDescriptor[] replaceRow= new DataValueDescriptor[SYSSTATEMENTSRowFactory.SYSSTATEMENTS_COLUMN_COUNT]; ScanController sc= tc.openScan( ti.getHeapConglomerate(), false, TransactionController.OPENMODE_FORUPDATE, TransactionController.MODE_TABLE, TransactionController.ISOLATION_REPEATABLE_READ, columnToReadSet, null, ScanController.NA, null, null, ScanController.NA); while(sc.fetchNext(rowTemplate)){ for (int i=0; i<rowTemplate.length; i++) { if (i == SYSSTATEMENTSRowFactory.SYSSTATEMENTS_VALID-1) replaceRow[i] = new SQLBoolean(false); else if (i == SYSSTATEMENTSRowFactory.SYSSTATEMENTS_CONSTANTSTATE-1) replaceRow[i] = new UserType(null); else replaceRow[i] = rowTemplate[i].cloneValue(false); } sc.replace(replaceRow,columnToUpdateSet); } sc.close(); }</code><technical_language>is columnToUpdateSet.set(i); done in if in else? for(int i=0;i<SYSSTATEMENTSRowFactory.SYSSTATEMENTS_COLUMN_COUNT;i++){ if (i+1 != SYSSTATEMENTSRowFactory.SYSSTATEMENTS_CONSTANTSTATE) { columnToReadSet.set(i); } columnToUpdateSet.set(i); }</technical_language>

Target:
public void clearSPSPlans() throws StandardException{ TabInfoImpl ti=getNonCoreTI(SYSSTATEMENTS_CATALOG_NUM); faultInTabInfo(ti); TransactionController tc=getTransactionExecute(); FormatableBitSet columnToReadSet=new FormatableBitSet(SYSSTATEMENTSRowFactory.SYSSTATEMENTS_COLUMN_COUNT); FormatableBitSet columnToUpdateSet=new FormatableBitSet(SYSSTATEMENTSRowFactory.SYSSTATEMENTS_COLUMN_COUNT); for(int i=0;i<SYSSTATEMENTSRowFactory.SYSSTATEMENTS_COLUMN_COUNT;i++){ if (i+1 != SYSSTATEMENTSRowFactory.SYSSTATEMENTS_CONSTANTSTATE) { columnToReadSet.set(i); } columnToUpdateSet.set(i); } DataValueDescriptor[] rowTemplate = new DataValueDescriptor[SYSSTATEMENTSRowFactory.SYSSTATEMENTS_COLUMN_COUNT]; DataValueDescriptor[] replaceRow= new DataValueDescriptor[SYSSTATEMENTSRowFactory.SYSSTATEMENTS_COLUMN_COUNT]; ScanController sc= tc.openScan( ti.getHeapConglomerate(), false, TransactionController.OPENMODE_FORUPDATE, TransactionController.MODE_TABLE, TransactionController.ISOLATION_REPEATABLE_READ, columnToReadSet, null, ScanController.NA, null, null, ScanController.NA); while(sc.fetchNext(rowTemplate)){ for (int i=0; i<rowTemplate.length; i++) { if (i+1 == SYSSTATEMENTSRowFactory.SYSSTATEMENTS_VALID) replaceRow[i] = new SQLBoolean(false); else if (i+1 == SYSSTATEMENTSRowFactory.SYSSTATEMENTS_CONSTANTSTATE) replaceRow[i] = new UserType(null); else replaceRow[i] = rowTemplate[i].cloneValue(false); } sc.replace(replaceRow,columnToUpdateSet); } sc.close(); }