Unverified Commit 7223d3c5 authored by Licho's avatar Licho Committed by GitHub

fix: watch statement fellow comment cannot extract table name (#1878)

Signed-off-by: 's avatarLicho <lecho.sun@gmail.com>
parent 9df64052
......@@ -53,7 +53,7 @@ public class StatementServiceImpl extends SuperServiceImpl<StatementMapper, Stat
// TODO: 2023/4/7 this function not support variable sql, because, JobManager and executor
// couple function
// and status and task execute.
final String[] statements = SqlUtil.getStatements(statement);
final String[] statements = SqlUtil.getStatements(SqlUtil.removeNote(statement));
return Arrays.stream(statements)
.filter(t -> SqlType.WATCH.equals(Operations.getOperationType(t)))
.flatMap(t -> Arrays.stream(WatchStatementExplainer.splitTableNames(t)))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment