Programming Guide


Contains an engine-specific warning code


Most engines supply a mechanism for signalling an unusual, but non-fatal condition.

Some engines use an eight-element array. If there is a warning, it sets the first element to indicate a warning and then sets one or more additional elements to describe the warning. Other engines use codes and messages similar to those used for errors. Those of a high severity are handled as errors and those of a low severity are handled as warnings. Refer to the Database Drivers for engine-specific information and examples.

By default, Panther ignores warnings. If an application needs to alert users to warning codes, it must use a JPL or C function to check for them. There is no default warning handler. The most efficient way to process warning codes is with an installed exit handler using DBMS ONEXIT.