TOC PREV NEXT INDEX

The Database Toolkit



4 Database Kit Messages and Codes


This chapter describes the Database Kit messages and codes that may be returned by the Database Kit: It discusses:

4.1 Introduction

The messages and codes described in this section are Database Kit messages and codes. The database-independent layer returns these messages and codes to an application's Database Kit modules in a Database Kit connection descriptor. Each message description in this appendix contains the message text and associated integer code, an explanation of the message, and, when the message indicates an error, one or more actions to take.

Many of the Database Kit messages returned to an application are sent in response to SQL error codes and messages returned by the relevant database server to the database-independent layer. These SQL error codes and messages are also available to an application.

For more information on error handling, see Handling Errors on page 1-52.

4.2 Message and Code Descriptions
Connected
Message

Connected

Return Code

0

Meaning

The application is connected to a database. See connect_information for the connection specifications.

Action

None

DB ERROR: A fatal database error has occurred in the server
Message

DB ERROR: A fatal database error has occurred in the server

Return Code

-1

Meaning

An error has originated in the server or the network interface that makes further operations impossible. Typically, a fatal database error terminates the connection with the database.

Action

See your database administrator.

DB ERROR: Cannot allocate memory for connection descriptor
Message

DB ERROR: Cannot allocate memory for connection descriptor

Return Code

(None)

Meaning

Not enough memory is available to create the connection descriptor for a requested connection.

Action

Free up system memory. For more information, see your system documentation or your system administrator.

DB ERROR: Functionality not present
Message

DB ERROR: Functionality not present

Return Code

8

Meaning

The requested functionality is not yet available.

Action

None

DB ERROR: Insufficient memory for request
Message

DB ERROR: Insufficient memory for request

Return Code

2

Meaning

Not enough memory is available to perform the requested operation.

Action

Adjust the parameters of DBquery to make memory usage more reasonable. For example:

DB ERROR: Invalid request
Message

DB ERROR: Invalid request

Return Code

9

Meaning

The request issued by the user is invalid for the current state of the database. For example:

Action

Do not issue a connect request when already connected.

Adjust the values of the DBquery parameters.

DB ERROR: Invalid statement
Message

DB ERROR: Invalid statement

Return Code

1

Meaning 1

The SQL statement issued by the user is incorrectly constructed.

Action 1

Correct the construction of the SQL statement.

Do not use a semicolon at the end of a SQL statement.

Meaning 2

The user does not have the correct privileges for the database and the objects being queried therein.

Action 2

After disconnecting from the database, see your database administrator to ensure that you have the correct privileges, then reconnect to the database and reissue the SQL statement.

DB ERROR: Recoverable database error
Message

DB ERROR: Recoverable database error

Return Code

3

Meaning 1

An error of unknown type occurred during processing. The error could be either a transient database error or a user error. This error aborts the operation but does not disconnect the user.

Action 1

Try the action that resulted in the error again. If the error recurs, disconnect and reconnect, and try the action once again.

Meaning 2

The default mapping performed by the database-independent layer on numeric data during a query converted floating-point data into a fixed type, resulting in an overflow error.

Action 2

Use DBquery's use_floating_type_only parameter to force a mapping to floating type (see Mapping Data to Supported Database Kit Datatypes on page 1-22).

Disconnected
Message

Disconnected

Return Code

0

Meaning

The application is not connected to a database.

Action

None



TOC PREV NEXT INDEX

Copyright © 2001 Advanced Visual Systems Inc.
All rights reserved.