Invalid SQL instruction using TOracleScript

carrieri

Member
Hi,

When I execute TOracleScript with invalid SQL instructions (e.g.: deletexx from plan_table;) I receive no Output messages, even with all OutputOptions set to true.
Shouldn
 
If you include [ooError] in the OutputOptions property, then the error message will be written to the Output TStringList property.
 
These DELETEXX statements are not recognized as SQL, and therefore they are not executed. They merely pass through the OnCommand event handler.

If a statement is recognized and fails on the server, you will get error output.
 
Back
Top