Character Processing Rules (CPRL) Procedures
HP NonStop SQL/MP Programming Manual for C—429847-008
11-8
CPRL_COMPAREOBJECTS_
The CPRL_COMPARE_ procedure returns these values:
string1
is an array containing the first string to be compared.
string1length
is the length in bytes of
string1
.
string2
is an array containing the second string to be compared.
string2length
is the length in bytes of
string2
.
result
indicates the result of the comparison, if the error code is 0 (zero):
cprladdr
is a pointer to the SQL collation or collation object.
CPRL_COMPAREOBJECTS_
The CPRL_COMPAREOBJECTS_ procedure compares two SQL collations or collation
objects to determine whether they are equal.
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.
-1
string1
is less than
string2
.
0
The strings collate equally.
1
string1
is greater than
string2
.
#include <cextdecs(CPRL_COMPAREOBJECTS_)>
short CPRL_COMPAREOBJECTS_ (
long
cprladdr1
/* i */
,long
cprladdr2
); /* i */
Summary of Contents for NonStop SQL/MP
Page 4: ......
Page 14: ...Contents HP NonStop SQL MP Programming Manual for C 429847 008 x ...
Page 60: ...Host Variables HP NonStop SQL MP Programming Manual for C 429847 008 2 26 VARCHAR Data Type ...
Page 294: ...SQL MP Sample Database HP NonStop SQL MP Programming Manual for C 429847 008 A 6 ...