The mi_get_db_locale() function
The mi_get_db_locale() function returns the value of the current database locale.
Syntax
mi_char *mi_get_db_locale(void);| Valid in client LIBMI application? | Valid in user-defined routine? |
|---|---|
| No | Yes |
Usage
The mi_get_db_locale() function returns the value of the current database locale, which indicates the HCL® Informix® GLS locale that the database server uses. The server-locale name gives information about language, territory, code set, and optionally other information about the database server. For more information about the server locale, see the HCL® Informix® GLS User's Guide.
The
database server locale can be one of the following:
- The current session locale, if it is different than the value of the DB_LOCALE environment variable
- The value of DB_LOCALE
en_us.8859-1, if DB_LOCALE is not set
Return values
- An mi_char pointer
- A pointer to the name of the current database locale