feat: add stop after render and after render trace to sqlserver action

This commit is contained in:
Kjell Winblad 2024-04-24 15:30:15 +02:00
parent 03e3ac19a9
commit a0b2357abb
1 changed files with 3 additions and 0 deletions

View File

@ -413,6 +413,9 @@ do_query(
%% only insert sql statement for single query and batch query %% only insert sql statement for single query and batch query
case apply_template(QueryTuple, Templates) of case apply_template(QueryTuple, Templates) of
{?ACTION_SEND_MESSAGE, SQL} -> {?ACTION_SEND_MESSAGE, SQL} ->
emqx_trace:rendered_action_template(ChannelId, #{
sql => SQL
}),
Result = ecpool:pick_and_do( Result = ecpool:pick_and_do(
PoolName, PoolName,
{?MODULE, worker_do_insert, [SQL, State]}, {?MODULE, worker_do_insert, [SQL, State]},