Skip to content

dameng的解析器不能正常解析 #45

@welyss

Description

@welyss

DmSqlHelper解析select,insert,drop等语句时,解析结果数都为0

		List<Statement> stmts = DmSqlHelper.parseMultiStatement("drop table t1");
		System.out.println(stmts.size());
		for (Statement stmt : stmts) {
			StatementType statementType = stmt.getStatementType();
			System.out.println(statementType.name());
		}

以上代码返回0,包括SELECT * FROM PRODUCTION.PRODUCT_REVIEW WHERE PRODUCT_REVIEW.ROW LIKE '%曹雪芹%';或select 1等等语句都是
如果调用parseStatement方法,则报只能有一句sql的异常,count为0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions