This section provides a description of each DB2 CLI function, ordered alphabetically. There is also a table of functions by category, in the DB2 CLI Function Summary. Each description has the following sections.
Each section is described below.
It describes what new function should be used, and how to use it in place of the old function.
Each function also has a table, such as the one below which indicates which specification or standard the function conforms to. The first column indicates which level of DB2 CLI the function was first provided, the second column indicates which version (1.0, 2.0, or 3.0) of the ODBC specification the function was first provided. The last column indicates if the function is included in the ISO CLI standard.
Note: | This table indicates support of the function, some functions use a set of options that do not apply to all specifications or standards. The restrictions section will identify any significant differences. |
Table 11. Sample Function Specification Table
Specification: | DB2 CLI 1.1 | ODBC 1.0 | ISO CLI |
Note: | All function arguments that are pointers are defined using the macro FAR, this macro is defined out (set to a blank) for all platforms except Windows. On Windows FAR is used to define pointer arguments as far pointers. |
Only SQLGetInfo() and SQLBindParameter() have parameters that are both input and output.
Some functions contain input or output arguments which are known as deferred or bound arguments.
These arguments are pointers to buffers allocated by the application, and are associated with (or bound to) either a parameter in an SQL statement, or a column in a result set. The data areas specified by the function are accessed by DB2 CLI at a later time. It is important that these deferred data areas are still valid at the time DB2 CLI accesses them.
Refer to Diagnostics for more information about return codes.
Refer to Diagnostics for more information about diagnostics.
See Chapter 4, Configuring CLI/ODBC and Running Sample Applications for more information on setting up the DB2 CLI environment and accessing the sample applications.