print(getColumnName(table.findColumn(idxColumn.getName())));
Column col = table.findColumn(idxColumn.getName()); if ( col == null ) {  throw new RuntimeException("Invalid column '" + idxColumn.getName() + "' on index " + index.getName() + " for table " + table.getName()); } print(getColumnName(col));
    protected void writeExternalIndexCreateStmt(Table table, Index index) throws IOException    {        if (index.getName() == null)        {            _log.warn("Cannot write unnamed index " + index);        }        else        {            print("CREATE");            if (index.isUnique())            {                print(" UNIQUE");            }            print(" INDEX ");            print(getIndexName(index));            print(" ON ");            print(getTableName(table));            print(" (");            for (Iterator it = index.getIndexColumns().iterator(); it.hasNext();)            {                IndexColumn idxColumn = (IndexColumn)it.next();                print(getColumnName(table.findColumn(idxColumn.getName())));                if (it.hasNext())                {                    print(", ");                }            }            print(")");            printEndOfStatement();        }    }