提交 637d3bad 编写于 作者: S serge-rider

SQL query type detect fix

上级 d57bd6a6
......@@ -211,8 +211,7 @@ public class SQLQuery implements SQLScriptElement {
parseQuery();
if (statement instanceof Select && ((Select) statement).getSelectBody() instanceof PlainSelect) {
PlainSelect selectBody = (PlainSelect) ((Select) statement).getSelectBody();
return selectBody.getFromItem() != null &&
CommonUtils.isEmpty(selectBody.getIntoTables()) &&
return CommonUtils.isEmpty(selectBody.getIntoTables()) &&
selectBody.getLimit() == null &&
selectBody.getTop() == null &&
!selectBody.isForUpdate();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册