Package com.foundationdb.sql.parser

Examples of com.foundationdb.sql.parser.ResultColumn


        Table table = builder.akibanInformationSchema().getTable(schemaName, tableName);
        ResultColumnList resultColumns = null;
        if(createTable != null)
            resultColumns = createTable.getResultColumns();
        String newColumnName;
        ResultColumn resultColumn;
        if(resultColumns != null && resultColumns.size() > descriptors.size())
            throw new InvalidCreateAsException("More columns names in create than in select query");
        int colpos = 0;
        for (DataTypeDescriptor descriptor : descriptors) {
            if ((resultColumns != null) && (resultColumns.size() > colpos)){
                    resultColumn = resultColumns.getResultColumn(colpos+ 1);
                    if(resultColumn != null) {
                        newColumnName = resultColumn.getName();
                    }else {
                        newColumnName = columnNames.get(colpos);
                     }

            } else {
View Full Code Here

TOP

Related Classes of com.foundationdb.sql.parser.ResultColumn

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.