Examples of SQLConstaint


Examples of com.alibaba.druid.sql.ast.statement.SQLConstaint

        OracleAlterTableAddConstaint item = new OracleAlterTableAddConstaint();

        SQLName name = this.exprParser.name();

        SQLConstaint constraint;
        if (lexer.token() == Token.PRIMARY) {
            constraint = exprParser.parsePrimaryKey();
        } else {
            throw new ParserException("TODO : " + lexer.token() + " " + lexer.stringVal());
        }

        constraint.setName(name);

        item.setConstraint(constraint);

        return item;
    }
View Full Code Here

Examples of com.alibaba.druid.sql.ast.statement.SQLConstaint

        OracleAlterTableAddConstaint item = new OracleAlterTableAddConstaint();

        SQLName name = this.exprParser.name();

        SQLConstaint constraint;
        if (lexer.token() == Token.PRIMARY) {
            constraint = exprParser.parsePrimaryKey();
        } else {
            throw new ParserException("TODO : " + lexer.token() + " " + lexer.stringVal());
        }

        constraint.setName(name);

        item.setConstraint(constraint);

        return item;
    }
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.