ErrorUI


Synopsis

ErrorUI provides the Error window, which contains information about an SQL error resulting from an invalid SQL statement.

Input Ports

Statement link
Error_offset link
Process_error link
Error_code link
Error_message link

Parameters

None

Output Ports

None

User Interface

 

GENERATE/FH666852.gif

Description

ErrorUI provides the Error UIwindow, which contains information about an SQL error resulting from an invalid SQL statement:

•      an error-location string that consists of the invalid SQL statement with the following inserted as a marker at the point of error: ----->>

•      The database-specific error message associated with the particular SQL error

•      The SQL error code associated with the error

The Statement and Process_error input values are available from the relevant module in the application; for example, DBquery. The remaining values are available from the database-independent layer via the main communication area descriptor for the current SQL operation. The Statement, Error_offset, and Process_error values are passed to DBerrorString for processing into the error-location message; it and the SQL error message and code are provided to users in the Error window.

Input Ports

Statement

The current SQL statement, for which the SQL error was returned. It is passed to DBerrorString.statement.

Error_offset

The error-offset information: the number of bytes from the beginning of the statement where the error occurred. It is passed to DBerrorString.error_offset.

Process_error

The value 1, to initiate the execution of DBerrorString. It is passed to DBerrorString.process_error.

Error_code

The SQL error code associated with the error.

Error_message

The database-specific SQL error message associated with the error.

Parameters

None

Output Ports

None

File

v/db.v

See Also

•