We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ALL
SELECT id, name FROM table_multi_executor_test WHERE (id) in ( (?) ) UNION SELECT id, name FROM table_multi_executor_test WHERE (id) in ( (?) )
SQLSelectStatement ast = (SQLSelectStatement) asts.get(0); SQLSelectQueryBlock queryBlock = ast.getSelect().getQueryBlock();
No response
在修改seata的一个问题 apache/incubator-seata#6957 时发现在调用druid中的com.alibaba.druid.sql.ast.statement.SQLSelect#getQueryBlock方法获取表信息时 发现该方法没有针对SQLUnionQuery做处理,如果查询语句中有union就会是SQLUnionQuery,可以取getFirstQueryBlock()获取到SQLSelectQueryBlock。
com.alibaba.druid.sql.ast.statement.SQLSelect#getQueryBlock
SQLUnionQuery
union
getFirstQueryBlock()
SQLSelectQueryBlock
请问是出于什么考虑没这样做,还是忘了处理,能否判断一下SQLUnionQuery,取getFirstQueryBlock()
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
No branches or pull requests
Database Type
ALL
Database Version
ALL
Druid Version
ALL
JDK Version
ALL
Error SQL
SELECT id, name FROM table_multi_executor_test WHERE (id) in ( (?) ) UNION SELECT id, name FROM table_multi_executor_test WHERE (id) in ( (?) )
Testcase Code
Stacktrace Info
No response
Error Info
在修改seata的一个问题 apache/incubator-seata#6957 时发现在调用druid中的
com.alibaba.druid.sql.ast.statement.SQLSelect#getQueryBlock
方法获取表信息时发现该方法没有针对
SQLUnionQuery
做处理,如果查询语句中有union
就会是SQLUnionQuery
,可以取getFirstQueryBlock()
获取到SQLSelectQueryBlock
。请问是出于什么考虑没这样做,还是忘了处理,能否判断一下
SQLUnionQuery
,取getFirstQueryBlock()
The text was updated successfully, but these errors were encountered: