Examples of SQLServerStatementParser


Examples of com.alibaba.druid.sql.dialect.sqlserver.parser.SQLServerStatementParser

        String expect = "UPDATE Cities" + //
                        "\nSET Location = CONVERT(Point, '12.3:46.2')" + //
                        "\nWHERE Name = 'Anchorage'";

        SQLServerStatementParser parser = new SQLServerStatementParser(sql);
        SQLStatement stmt = parser.parseStatementList().get(0);

        String text = TestUtils.outputSqlServer(stmt);

        Assert.assertEquals(expect, text);
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.