cancel
Showing results for 
Search instead for 
Did you mean: 

Suppressing warnings in DBISQL

justin_willey
Participant
3,030

I think I must be missing something very obvious! I'm trying to run a very long sql script (with Run Script) , which generates large number of unimportant (in this context) warnings. While behaviour on error can be controlled using the Options | General | Command Files settings, warnings still seem to halt execution and require manual intervention.

There is a command line switch (-q) so I have a work around, but I don't see any equivalent setting in the GUI.

using 10.0.1.3931

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

Setting the on_error option to 'Continue' should (but currently does not) prevent warnings from being displayed. This is a behavior change that was inadvertently introduced in version 9.0.1. We'll issue a fix for this in an upcoming EBF. Thanks for pointing it out.

Answers (1)

Answers (1)

ian_mchardy
Product and Topic Expert
Product and Topic Expert

Adding

set temporary option on_error = 'Continue';

to your SQL script should cause your script to continue if there are errors or warnings.

justin_willey
Participant

Thanks for the suggestion, but while it does prevent errors interrupting execution, warnings still bring up a dialog box.

This can be illustrated by this script:

set temporary option on_error = 'Continue';
select * from NonExistentTable;
select first * from TableThatDoesExist;
select * from AnotherTableThatDoesExist;

Execution stops with a warning that the result is non-deterministic, having continued past the error caused by the non-existent table.