23.10.2012 Views

Openedge Data Management: SQL Reference - Product ...

Openedge Data Management: SQL Reference - Product ...

Openedge Data Management: SQL Reference - Product ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

E<strong>SQL</strong> elements and statements<br />

336<br />

:param<br />

Receives the information returned by the GET DIAGNOSTICS EXCEPTION statement. The<br />

host-language program must declare a param compatible with the <strong>SQL</strong> data type of the<br />

information item.<br />

detail_info_item<br />

One of the following keywords, which returns associated information about the particular<br />

error condition:<br />

Syntax<br />

CONDITION_NUMBER<br />

| RETURNED_<strong>SQL</strong>STATE<br />

| CLASS_ORIGIN<br />

| SUBCLASS_ORIGIN<br />

| ENVIRONMENT_NAME<br />

| CONNECTION_NAME<br />

| CONSTRAINT_CATALOG<br />

| CONSTRAINT_SCHEMA<br />

| CONSTRAINT_NAME<br />

| CATALOG_NAME<br />

| SCHEMA_NAME<br />

| TABLE_NAME<br />

| COLUMN_NAME<br />

| CURSOR_NAME<br />

| MESSAGE_TEXT<br />

| MESSAGE_LENGTH<br />

| MESSAGE_OCTET_LENGTH<br />

CONDITION_NUMBER<br />

The sequence of this detail area in the diagnostics area. Currently,<br />

CONDITION_NUMBER is always 1.<br />

RETURNED_<strong>SQL</strong>STATE<br />

The <strong>SQL</strong>STATE value that corresponds to the condition.<br />

CLASS_ORIGIN<br />

The general type of error. For example, connection exception or data exception.<br />

SUBCLASS_ORIGIN<br />

The specific error. Usually the same as the message text.<br />

ENVIRONMENT_NAME<br />

Not currently supported.<br />

CONNECTION_NAME<br />

Not currently supported.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!