为什么包含输出游标的匿名块在 Toad 中执行两次?

Why anonymous block is executed twice in Toad when it contains output cursor?

我正在使用 Toad for Oracle 12.10.0.30。当使用编辑器 -> 执行语句 (F9) 以 :res 作为输出光标执行以下匿名块时,该块将执行两次并且 DBMS 输出包含两次 'START'。如果没有输出游标,则该块正确执行一次。

谁能解释一下为什么会这样?

begin
    DBMS_OUTPUT.put_line('START');

    open :res for
    select * from dual
    where rownum <= 100;

end;

谢谢!

这是 12.10 中的错误,已在 12.11 中更正。你可以找到它的原始报告here