Package com.akiban.sql

Examples of com.akiban.sql.StandardException


                }
            }
        else {
            /* At least 1 type is not a system built-in type */
            if (!thisType.equals(otherType)) {
                throw new StandardException("Two different user-defined types");
            }
            higherType = this;
            precision = higherType.getPrecision();
            scale = higherType.getScale();
        }
View Full Code Here


        else if (typeId == TypeId.DECIMAL_ID)
            unsignedTypeId = TypeId.DECIMAL_UNSIGNED_ID;
        else if (typeId == TypeId.NUMERIC_ID)
            unsignedTypeId = TypeId.NUMERIC_UNSIGNED_ID;
        else
            throw new StandardException("Not a numeric type: " + this);           
        return new DataTypeDescriptor(unsignedTypeId, precision, scale,
                                      isNullable, maximumWidth);
    }
View Full Code Here

            throws StandardException {
        ValueNode operand = node.getOperand();
        DataTypeDescriptor origType = operand.getType();
        if (origType != null) {
            if (!origType.getTypeId().isStringTypeId())
                throw new StandardException("Collation not allowed for " + origType);
            CharacterTypeAttributes characterAttributes =
                CharacterTypeAttributes.forCollation(origType.getCharacterAttributes(),
                                                     node.getCollation());
            operand.setType(new DataTypeDescriptor(origType, characterAttributes));
        }
View Full Code Here

            if (type == null) {
                assert false : "Type not set yet";
                return;
            }
            if (!type.getTypeId().isBooleanTypeId())
                throw new StandardException("Non-boolean " + which + " clause");
        }
    }
View Full Code Here

                                             ex,
                                             lineColumnErrorPosition(ex.errorLine,
                                                                     ex.errorColumn,
                                                                     sqlText));
            else
                throw new StandardException(ex);
        }
    }
View Full Code Here

                                             ex,
                                             lineColumnErrorPosition(ex.errorLine,
                                                                     ex.errorColumn,
                                                                     sqlText));
            else
                throw new StandardException(ex);
        }
    }
View Full Code Here

    }

    /** Check that string literal is not too long. */
    public void checkStringLiteralLengthLimit(String image) throws StandardException {
        if (image.length() > maxStringLiteralLength) {
            throw new StandardException("String literal too long");
        }
    }
View Full Code Here

     * Check that identifier is not too long.
     */
    public void checkIdentifierLengthLimit(String identifier)
            throws StandardException {
        if (identifier.length() > maxIdentifierLength)
            throw new StandardException("Identifier too long: '" + identifier + "'");
    }
View Full Code Here

        case MODIFY_TYPE:
        case LOCKING_TYPE:
            break;

        default:
            throw new StandardException("Not implemented");
        }
    }
View Full Code Here

                }
                else {                                     
                    rightTable = get(index).getTableName();
                }
                if (leftTable.equals(rightTable)) {
                    throw new StandardException("Table duplicated in FROM list: " +
                                                fromTable.getExposedName());
                }
            }
        }
View Full Code Here

TOP

Related Classes of com.akiban.sql.StandardException

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.