{
// Must be version field since nothing else should come through here
int parametersIndex[] = new int[m.getNumberOfDatastoreMappings()];
parametersIndex[0] = paramIndex++;
StatementMappingIndex sei = new StatementMappingIndex(m);
sei.addParameterOccurrence(parametersIndex);
mappingStatementIndex.setVersion2(sei);
String inputParam = ((RDBMSMapping)m.getDatastoreMapping(0)).getUpdateInputParameter();
String condition = " AND " + m.getDatastoreMapping(0).getDatastoreField().getIdentifier() + "=" + inputParam;
where.append(condition);
}