public void writeExternalIndexDropStmt(Table table,IIndex index,StringBuilder ddl){
  if (databaseInfo.isAlterTableForDropUsed()) {
    writeTableAlterStmt(table,ddl);
  }
  ddl.append("DROP INDEX ");
  printIdentifier(getIndexName(index),ddl);
  if (!databaseInfo.isAlterTableForDropUsed()) {
    ddl.append(" ON ");
    ddl.append(getFullyQualifiedTableNameShorten(table));
  }
  printEndOfStatement(ddl);
}

public void writeExternalIndexDropStmt ( Table table , IIndex index , StringBuilder ddl ) { if ( databaseInfo . isAlterTableForDropUsed ( ) ) { writeTableAlterStmt ( table , ddl ) ; } ddl . append ( "DROP INDEX " ) ; printIdentifier ( getIndexName ( index ) , ddl ) ; if ( ! databaseInfo . isAlterTableForDropUsed ( ) ) { ddl . append ( " ON " ) ; ddl . append ( getFullyQualifiedTableNameShorten ( table ) ) ; } printEndOfStatement ( ddl ) ; }
generates the statement to drop a non - embedded index from the database .
