Source:
<code>public void testDeleteViewIndexSequences() throws Exception { String schemaName = generateUniqueName(); String tableName = generateUniqueName(); String viewSchemaName = generateUniqueName(); String fullTableName = SchemaUtil.getTableName(schemaName, tableName); String indexName = "IND_" + generateUniqueName(); String viewName = "VIEW_" + generateUniqueName(); String fullViewName = SchemaUtil.getTableName(viewSchemaName, viewName); createBaseTable(schemaName, tableName, false, null, null); Connection conn1 = getConnection(); Connection conn2 = getConnection(); conn1.createStatement().execute("CREATE VIEW " + fullViewName + " AS SELECT * FROM " + fullTableName); conn1.createStatement().execute("CREATE INDEX " + indexName + " ON " + fullViewName + " (v1)"); conn2.createStatement().executeQuery("SELECT * FROM " + fullTableName).next(); String sequenceName = getViewIndexSequenceName(PNameFactory.newName(fullTableName), null, isNamespaceMapped); String sequenceSchemaName = getViewIndexSequenceSchemaName(PNameFactory.newName(fullTableName), isNamespaceMapped); verifySequenceValue(null, sequenceName, sequenceSchemaName, -9223372036854775807L); verifySequenceValue(null, sequenceName, sequenceSchemaName, -9223372036854775807L); conn1.createStatement().execute("CREATE INDEX " + indexName + "_2 ON " + fullViewName + " (v1)"); <START> verifySequenceValue(null, sequenceName, sequenceSchemaName, -9223372036854775806L); <END> conn1.createStatement().execute("DROP VIEW " + fullViewName); conn1.createStatement().execute("DROP TABLE "+ fullTableName); verifySequenceNotExists(null, sequenceName, sequenceSchemaName); }</code><technical_language>curious, I is a difference in digit. significance? while it, extract this a constant</technical_language>

Target:
public void testDeleteViewIndexSequences() throws Exception { String schemaName = generateUniqueName(); String tableName = generateUniqueName(); String viewSchemaName = generateUniqueName(); String fullTableName = SchemaUtil.getTableName(schemaName, tableName); String indexName = "IND_" + generateUniqueName(); String viewName = "VIEW_" + generateUniqueName(); String fullViewName = SchemaUtil.getTableName(viewSchemaName, viewName); createBaseTable(schemaName, tableName, false, null, null); Connection conn1 = getConnection(); Connection conn2 = getConnection(); conn1.createStatement().execute("CREATE VIEW " + fullViewName + " AS SELECT * FROM " + fullTableName); conn1.createStatement().execute("CREATE INDEX " + indexName + " ON " + fullViewName + " (v1)"); conn2.createStatement().executeQuery("SELECT * FROM " + fullTableName).next(); String sequenceName = getViewIndexSequenceName(PNameFactory.newName(fullTableName), null, isNamespaceMapped); String sequenceSchemaName = getViewIndexSequenceSchemaName(PNameFactory.newName(fullTableName), isNamespaceMapped); verifySequenceValue(null, sequenceName, sequenceSchemaName, Long.MIN_VALUE + 1); conn1.createStatement().execute("CREATE INDEX " + indexName + "_2 ON " + fullViewName + " (v1)"); verifySequenceValue(null, sequenceName, sequenceSchemaName, Long.MIN_VALUE + 2); conn1.createStatement().execute("DROP VIEW " + fullViewName); conn1.createStatement().execute("DROP TABLE "+ fullTableName); verifySequenceNotExists(null, sequenceName, sequenceSchemaName); }