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

SQL query type detect fix

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