static void setTableColumnsForSubquery(Table table,
                                           QueryExpression queryExpression,
                                           boolean fullIndex) {

        table.columnList  = queryExpression.getColumns();
        table.columnCount = queryExpression.getColumnCount();

        table.createPrimaryKey();

        if (fullIndex) {
            int[] colIndexes = null;

            colIndexes = table.getNewColumnMap();

            ArrayUtil.fillSequence(colIndexes);

            table.fullIndex = table.createIndexForColumns(colIndexes);
        }
    }
static void setTableColumnsForSubquery ( Table table , QueryExpression queryExpression , boolean fullIndex ) { table . columnList = queryExpression . getColumns ( ) ; table . columnCount = queryExpression . getColumnCount ( ) ; table . createPrimaryKey ( ) ; if ( fullIndex ) { int [ ] colIndexes = null ; colIndexes = table . getNewColumnMap ( ) ; ArrayUtil . fillSequence ( colIndexes ) ; table . fullIndex = table . createIndexForColumns ( colIndexes ) ; } }
For table subqueries