Home | Previous Page | Next Page   GLS Fundamentals > Using GLS Locales with IBM Informix Products >

Establishing a Database Connection

When a client application requests a connection to a database, the database server uses GLS locales to perform the following steps:

  1. Examine the client locale information that the client passes.
  2. Verify that it can establish a connection between the client application and the database that it requested.
  3. Determine the server-processing locale, which the database server uses to handle locale-specific information for the connection.

Sending the Client Locale

When the client application requests a connection, it sends the following environment variables from the client locale to the database server:

The database server uses these settings to extract the following information:

The database server uses this information to verify the database locale and to establish the server-processing locale.

Verifying the Database Locale

To open an existing database, the client application must correctly identify the database locale for that database. To verify the database locale, the database server compares the following two locales:

Two database locales match if their language, territory, code set, and any locale modifiers are the same. If these database locales do not match, the database server performs the following actions: