Package com.alibaba.druid.sql.dialect.sqlserver.ast.stmt

Examples of com.alibaba.druid.sql.dialect.sqlserver.ast.stmt.SQLServerExecStatement


        }

        if (identifierEquals("EXEC") || identifierEquals("EXECUTE")) {
            lexer.nextToken();

            SQLServerExecStatement execStmt = new SQLServerExecStatement();
            if (lexer.token() == Token.LPAREN) {
                lexer.nextToken();
                this.exprParser.exprList(execStmt.getParameters(), execStmt);
                accept(Token.RPAREN);
            } else {
                SQLName moduleName = this.exprParser.name();
                execStmt.setModuleName(moduleName);
               
                this.exprParser.exprList(execStmt.getParameters(), execStmt);
            }
            statementList.add(execStmt);
            return true;
        }
View Full Code Here


        }

        if (identifierEquals("EXEC") || identifierEquals("EXECUTE")) {
            lexer.nextToken();

            SQLServerExecStatement execStmt = new SQLServerExecStatement();
            if (lexer.token() == Token.LPAREN) {
                lexer.nextToken();
                this.exprParser.exprList(execStmt.getParameters(), execStmt);
                accept(Token.RPAREN);
            } else {
                SQLName moduleName = this.exprParser.name();
                execStmt.setModuleName(moduleName);
               
                this.exprParser.exprList(execStmt.getParameters(), execStmt);
            }
            statementList.add(execStmt);
            return true;
        }
View Full Code Here

        }

        if (identifierEquals("EXEC") || identifierEquals("EXECUTE")) {
            lexer.nextToken();

            SQLServerExecStatement execStmt = new SQLServerExecStatement();
            if (lexer.token() == Token.LPAREN) {
                lexer.nextToken();
                this.exprParser.exprList(execStmt.getParameters(), execStmt);
                accept(Token.RPAREN);
            } else {
                SQLName moduleName = this.exprParser.name();
                execStmt.setModuleName(moduleName);
               
                this.exprParser.exprList(execStmt.getParameters(), execStmt);
            }
            statementList.add(execStmt);
            return true;
        }
View Full Code Here

        }

        if (identifierEquals("EXEC") || identifierEquals("EXECUTE")) {
            lexer.nextToken();

            SQLServerExecStatement execStmt = new SQLServerExecStatement();
            if (lexer.token() == Token.LPAREN) {
                lexer.nextToken();
                this.exprParser.exprList(execStmt.getParameters(), execStmt);
                accept(Token.RPAREN);
            } else {
                SQLName moduleName = this.exprParser.name();
                execStmt.setModuleName(moduleName);
               
                this.exprParser.exprList(execStmt.getParameters(), execStmt);
            }
            statementList.add(execStmt);
            return true;
        }
View Full Code Here

        }

        if (identifierEquals("EXEC") || identifierEquals("EXECUTE")) {
            lexer.nextToken();

            SQLServerExecStatement execStmt = new SQLServerExecStatement();
            if (lexer.token() == Token.LPAREN) {
                lexer.nextToken();
                this.exprParser.exprList(execStmt.getParameters(), execStmt);
                accept(Token.RPAREN);
            } else {
                SQLName sqlNameName = this.exprParser.name();

                if (lexer.token() == Token.EQ) {
                    lexer.nextToken();
                    execStmt.setReturnStatus(sqlNameName);
                    execStmt.setModuleName(this.exprParser.name());
                } else {
                    execStmt.setModuleName(sqlNameName);
                }

                this.exprParser.exprList(execStmt.getParameters(), execStmt);
            }
            statementList.add(execStmt);
            return true;
        }
       
View Full Code Here

TOP

Related Classes of com.alibaba.druid.sql.dialect.sqlserver.ast.stmt.SQLServerExecStatement

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.