UPCASE (JANUS DEFINE parameter)

From m204wiki
Jump to navigation Jump to search

Convert client "names" to uppercase

UPCASE is a parameter on JANUS DEFINE, which defines and sets characteristics of a Janus port.

This parameter indicates that all client "names" are to be converted to upper case. "Names" includes userids and passwords, variable names for OPENSERV ports, column names for SDS ports and header parameters, header values, cookie names, and form field names for WEBSERV ports. By setting UPCASE as a port parameter, the userid and password can be specified by the client in case insensitive form, that is, it can be specified in lower case.

Note that it is possible to have lower case userids and passwords in Model 204. For example, the userids HOMER, homer, and Homer would be treated as three separate userids by Model 204. The UPCASE parameter simplifies the interaction between clients (where names tend to be in lowercase) and Model 204 (where they tend to be in uppercase).

Note: The UPCASE parameter never results in data being converted to uppercase. That is, if a client sends variable @customer with a value of Dolly Dinkle, and UPCASE is active for the connection, the User Language application would see a variable called @CUSTOMER with a value of Dolly Dinkle.

For SDS ports, the UPCASE parameter means that all table and column names passed from the Adaptive Server will be converted to uppercase. This means that when defining the columns and tables (using JANCAT), the names must all be uppercase. It also means that if an SDS port has the UPCASE parameter set but has mixed case table and column names, those tables and columns will be inaccessible.

The UPCASE parameter is the opposite of NOUPCASE. The default is for all ports to have UPCASE set.

Valid for WEBSERV, OPENSERV and SDS port types.

See also