A command to run SET ESCAPE is executed, followed by possibly multiple REGEXP_COUNT() statements. But this count does not seem to be returning as expected. The escape characters does not seem to be applied as expected. Whent he same script is run from SQL Plus, the expected counts are returned.
Other conditions that use escape characters are also not being applied as expected.
Toad's editor does not apply SET ESCAPE to subsequent session. In the editor, each statement is run in it's own session when executed (F9), even if the statements are in the same Toad editor window. If the SET ESCAPE is not run within the same session as the statement that uses escape characters (using F5 to run all) then the escape will not be applied.
Use F5 and run the SET ESCAPE along with any statement that uses an escape charater in the same execution. Running the statements seperately will not carry through and apply the SET ESCAPE to subsequent statements run in a different session, even if it's in the same Editor window.
© ALL RIGHTS RESERVED. Terms of Use Privacy Cookie Preference Center