Specify a DB-Library version level.
RETCODE dbsetversion(version) DBINT version;
The version of DB-Library behavior that the application expects. The following table lists the symbolic values that are legal for version:
Value of version |
To Indicate |
Features Supported |
---|---|---|
DBVERSION_46 |
4.6 behavior |
RPCs, registered procedures, remote procedure calls, text and image datatypes. This is the default version of DB-Library. |
DBVERSION_100 |
10.0 behavior |
numeric and decimal datatypes. |
SUCCEED or FAIL.
dbversion sets the version of DB-Library behavior that an application expects. DB-Library will provide the behavior requested, regardless of the actual version of DB-Library in use.
An application is not required to call dbsetversion. However, if dbsetversion is not called, DB-Library provides version 4.6-level behavior.
If an application calls dbsetversion, it must do so before calling any other DB-Library routine, with the exception of dbinit.
It is an error to call dbsetversion more than once.