skip to main content
IP API Reference for C/C++ : Overview
 

Overview

This section describes the functions that must be implemented by the IP that you create for use with a third-party SQL engine. All functions must be declared in your code. If your IP does not support a specific feature, declare the function with a return statement that returns either success or failure.
All parameters used in the IP functions are marked as either input or output. The caller of the function (either the OpenAccess SDK Server or the client libraries) initializes the input parameters. The IP sets the output parameters.
Arguments to functions that can accept or return Unicode data are declared to be of type OAWCHAR. The symbol OAWCHAR maps to the type C type wchar_t or short int *, depending on the UnicodeEncoding setting in the oasql.ini file. The default Unicode encoding for OAWCHAR is wchar_t.
To set the encoding to UTF-16, set the UnicodeEncoding parameter in the [SQLIP] section of oasql.ini. When the UnicodeEncoding parameter is set to 0, Unicode data is encoded as UTF-16. When set to 1 (the default), Unicode data is encoded in wchar_t.