It is only required to set the database handle collate
option when first creating a database. Once the database has been created with locale collation the database can be opened without explicitly setting the collate
option in the database handle.
collate
option is set and the database already exists, the collate
option must be an exact match with the collate
string stored in the database catalog.collate
value cannot be changed.RDM utilizes local locale functionality on operating systems where it is supported. On those operating systems, the locale of the application does not need to match the locale used by the database. On operating systems where local locales are not supported, the collation locale of the thread(s) using the database must match the locale stored in the database catalog. If the locales do not match the eLOCALEMISMATCH error code will be returned when the when a database is requested.
The default value for collate
is NULL
if the database is being created.
collate=en_DK.utf8
.utf8 locales are supported for the collate
option.This option key is associated with the RDM_DB handle (or RDM_CPP::Db for C++) and can be set using one of the following functions: