Localization precedence

When determining which localization values to use, Client-Library uses the following order of preference:

  1. Data element localization values:

    • The CS_LOCALE associated with the CS_DATAFMT structure that describes a data element, or

    • The CS_LOCALE passed to a routine as a parameter.

  2. Connection structure localization values.

  3. Context structure localization values.

Context structure localization values are always defined, because a newly allocated context structure is assigned whatever default localization values are in effect.