The type of the default database influences the runtime error handling. If a default database is specified with the help of the DATABASE statement, the runtime error handling depends on the fact whether the default database is ANSI-compliant.
The behavior of the errors depends on the specific SQL statement used rather than on the ANSI-compliant status of the database at runtime. If a program is compiled against a not ANSI-compliant database and then run against an ANSI-compliant database, the errors will behave as they behave in a non-ANSI-compliant database.
When the ANSI-compliant behavior is requested with no WHENEVER ERROR CONTINUE statement in effect, ANSI compliance will be in effect if one of the following conditions is true:
The non-ANSI-compliant method with no WHENEVER ERROR CONTINUE statement will take place if:
If one part of an application is compiled in a non-ANSI-compliant database and the other in ANSI-compliant one, different parts will have different error handling.
There are several additional issues that concern database connections: