SQL/MP Programming Manual for C
Character Processing Rules (CPRL) Procedures
HP NonStop SQL/MP Programming Manual for C—429847-008
11-21
CPRL_INFO_
The CPRL_INFO_ procedure returns these values:
cprladdr
is a pointer to the SQL collation or collation object.
cprlsize
is the length in bytes of the SQL collation or collation object.
is1to1
is set as follows:
lengtheningfactor
specifies the maximum lengthening that encodings can cause. (That is, for a
specified string, the encoding is not more than lengtheningfactor times the
original string length. For SQL collations or collation objects that preserve (or
shorten) the length on encoding, lengtheningfactor is 1.)
characterset
specifies the character set assumed by the SQL collation or collation object:
version
is the format version of the SQL collation or collation object.
Code Description
0 The operation was successful.
–2 The SQL collation or collation object is invalid.
–4 The version of the SQL collation or collation object is not supported.
–20 The user-specified buffer is not large enough to receive the returned string.
1 The encoding for this SQL collation or collation object is a one-to-one
map.
0 The encoding is not a one-to-one map.
0 UNKNOWN 105 ISO88595
101 ISO88591 106 ISO88596
102 ISO88592 107 ISO88597
103 ISO88593 108 ISO88598
104 ISO88594 109 ISO88599