Locale support for C User-defined routines (HCL OneDB and DB API)

HCL OneDB™ allows you to create user-defined routines (UDRs) that are written in the C programming language.

These C UDRs use the DataBlade® API to communicate with the database server. For a complete description of the DataBlade API, see the HCL OneDB DataBlade API Programmer's Guide. This section describes how to globalize a C UDR.

Globalization is the process of creating a user-defined routine (UDR) that can support different languages, territories, and code sets without changing or recompiling its code.

A globalized C UDR must handle the following GLS considerations:
  • Where can the UDR use non-ASCII characters in source code?
  • What steps must the C UDR take when copying character data?
  • How can the UDR access GLS locales?
  • How does the UDR handle code-set conversion?
  • How does the UDR handle locale-specific display formats?
  • How can the UDR access globalized exception messages?
  • How can the UDR access globalized tracing messages?
  • How do opaque-type support functions handle locale-sensitive data?