Cprl_Getspecialtable - HP NonStop SQL/MP Programming Manual

For c
Table of Contents

Advertisement

Character Processing Rules (CPRL) Procedures

CPRL_GETSPECIALTABLE_

The CPRL_GETSPECIALTABLE_ procedure extracts SPECIALS character class
information from an SQL collation or collation object, if the SPECIALS character class
exists.
If the SPECIALS character class does not exist, CPRL_GETSPECIALTABLE_ creates
it. In this case, characters are considered SPECIALS if they are not ALPHAS or
NUMERICS. (The ALPHAS and NUMERICS character classes exist in all SQL
collations or collation objects.)
#include <cextdecs(CPRL_GETSPECIALTABLE_)>
short CPRL_GETSPECIALTABLE_ (
The CPRL_GETSPECIALTABLE_ procedure returns these values:
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.
array
is a 256-byte array specified by the user. If the call is successful,
CPRL_GETALPHATABLE_ sets each byte in array as follows:
1
The corresponding character code in the SQL collation or collation object
is in the SPECIALS character class.
0
The corresponding character code in the SQL collation or collation object
is not in the SPECIALS character class.
If the call is unsuccessful, array is not modified.
cprladdr
is a pointer to the SQL collation or collation object.
HP NonStop SQL/MP Programming Manual for C—429847-008
char *array
,long cprladdr );
11-19
CPRL_GETSPECIALTABLE_
/* o */
/* i */

Advertisement

Table of Contents
loading

Table of Contents