Examples of HSQLParseException


Examples of org.hsqldb.HSQLInterface.HSQLParseException

        case OpTypes.MIN:               element = "min"; break;
        case OpTypes.MAX:               element = "max"; break;
        case OpTypes.AVG:               element = "avg"; break;
        case OpTypes.SQL_FUNCTION:      element = "function"; break;
        default:
            throw new HSQLParseException("Unsupported Operation: " +
                                         String.valueOf(opType));
        }

        sb.append(indent).append("<operation id=\"").append(this.getUniqueId()).append("\"");
        sb.append(" type=\"").append(element).append("\"");
View Full Code Here

Examples of org.hsqldb.HSQLInterface.HSQLParseException

        if ((typestring.compareTo("VARCHAR") == 0) &&
            (dataType.precision > 1048576)) {
            String msg = "VARCHAR column size for column ";
            msg += getTableNameString() + "." + columnName.name;
            msg += " is > 1048576 char maximum.";
            throw new HSQLParseException(msg);
        }

        // see if there is a default value for the column
        Expression exp = getDefaultExpression();
View Full Code Here

Examples of org.hsqldb.HSQLInterface.HSQLParseException

        case OpTypes.MAX:               element = "max"; break;
        case OpTypes.AVG:               element = "avg"; break;
        case OpTypes.SQL_FUNCTION:      element = "function"; break;
        case OpTypes.SIMPLE_COLUMN:     element = "simplecolumn"; break;
        default:
            throw new HSQLParseException("Unsupported Operation: " +
                                         String.valueOf(opType));
        }

        StringBuffer sb = new StringBuffer();
View Full Code Here

Examples of org.hsqldb.HSQLInterface.HSQLParseException

        try {
            getResult(session);
        }
        catch (HsqlException e)
        {
            throw new HSQLParseException(e.getMessage());
        }
        catch (Exception e)
        {
            // XXX coward.
        }

        StringBuffer sb = new StringBuffer();
        String indent = orig_indent + HSQLInterface.XML_INDENT;

        // select
        sb.append(orig_indent).append("<select");
        if (select.isDistinctSelect)
            sb.append(" distinct=\"true\"");
        if (select.isGrouped)
            sb.append(" grouped=\"true\"");
        if (select.isAggregated)
            sb.append(" aggregated=\"true\"");

        // limit
        if ((select.sortAndSlice != null) && (select.sortAndSlice.limitCondition != null)) {
            Expression limitCondition = select.sortAndSlice.limitCondition;
            if (limitCondition.nodes.length != 2) {
                throw new HSQLParseException("Parser did not create limit and offset expression for LIMIT.");
            }
            try {
                // read offset. it may be a parameter token.
                if (limitCondition.nodes[0].isParam() == false) {
                    Integer offset = (Integer)limitCondition.nodes[0].getValue(session);
View Full Code Here

Examples of org.hsqldb.HSQLInterface.HSQLParseException

        case OpTypes.MIN:               element = "min"; break;
        case OpTypes.MAX:               element = "max"; break;
        case OpTypes.AVG:               element = "avg"; break;
        case OpTypes.SQL_FUNCTION:      element = "function"; break;
        default:
            throw new HSQLParseException("Unsupported Operation: " +
                                         String.valueOf(opType));
        }

        StringBuffer sb = new StringBuffer();
View Full Code Here

Examples of org.hsqldb.HSQLInterface.HSQLParseException

        case OpTypes.MIN:               element = "min"; break;
        case OpTypes.MAX:               element = "max"; break;
        case OpTypes.AVG:               element = "avg"; break;
        case OpTypes.SQL_FUNCTION:      element = "function"; break;
        default:
            throw new HSQLParseException("Unsupported Operation: " +
                                         String.valueOf(opType));
        }

        StringBuffer sb = new StringBuffer();
View Full Code Here

Examples of org.hsqldb_voltpatches.HSQLInterface.HSQLParseException

            exp.attributes.put("valuetype", dataType.getNameString());
            return exp;

        case OpTypes.TABLE_SUBQUERY:
            if (subQuery == null || subQuery.queryExpression == null) {
                throw new HSQLParseException("VoltDB could not determine the subquery");
            }
            // @TODO: SubQuery doesn't have an information about the query parameters
            // Or maybe there is a way?
            ExpressionColumn parameters[] = new ExpressionColumn[0];
            exp.children.add(StatementQuery.voltGetXMLExpression(subQuery.queryExpression, parameters, session));
View Full Code Here

Examples of org.hsqldb_voltpatches.HSQLInterface.HSQLParseException

        case OpTypes.ROW_SUBQUERY:
        case OpTypes.TABLE_SUBQUERY:
        case OpTypes.ROW:
        case OpTypes.TABLE:
        case OpTypes.EXISTS:
            throw new HSQLParseException("Unsupported subquery syntax within an expression. Consider using a join or multiple statements instead");

        case OpTypes.FUNCTION:             opAsString = "HSQL-style user-defined Java SQL functions"; break;

        case OpTypes.ROUTINE_FUNCTION:     opAsString = "HSQL routine functions"; break; // not used
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.