Within a UDR, the DataBlade API does not perform any code-set conversion automatically. Your C UDR might need to perform code-set conversion in the following situations:
When your C UDR contains character strings that are sent to the database server, it must perform any required code-set conversion on these strings. This code-set conversion must handle any differences between the code set of this character string and the code set of the server-processing locale in which the UDR executes.
For example, the DataBlade API does not perform code-set conversion on the multibyte table name, A1A2A3B1B2, in the following SELECT statement:
mi_exec(conn, "SELECT * from A1A2A3B1B2", 0);
If your UDR might execute in a server-processing locale that does not include a code set that supports characters in your SQL statements, the UDR can explicitly perform code-set conversion between the code sets of the server-processing locale and a specified locale.
The DataBlade API provides the following functions to assist in this code-set conversion.
For more information on the syntax of these DataBlade API functions, see the function reference of the IBM Informix: DataBlade API Programmer's Guide.
The client application performs code-set conversion of non-opaque-type data that is transferred to and from the client, but the database server does not know about the internal format of an opaque data type. Therefore, for opaque data types, the support functions are responsible for explicitly converting any string that is not in the code set of the server-processing locale.
You might need to perform code-set conversion in the following opaque-type support functions:
The DataBlade API provides the following functions for code-set conversion in the support functions of an opaque data type.
For more information on the syntax of these DataBlade API functions, see the function reference in the IBM Informix: DataBlade API Programmer's Guide.
Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]