DB2 - sqlcli.h defines ULONG as 32-bits
An external Rexx function package to connect to SQL databases
Brought to you by:
rexx
When building DB2 support (in this case V11.1) the configure step will detect that sqlcli.h has defined ULONG and will skip the definition in rexxsaa.c. Unfortunaltey, DB2 defines ULONG as 32-bits but Regina defines it as 64-bit. Therefore, there is a discrepancy such that when RxFuncAdd is invoked and RXSQL tries to do its thing it will set the RXSTRING length field as a 32-bit value but Regina will use it as a 64-bit field. It probably doesn't make much difference in a little-endian environment but is problematic on a big-endian platform,A simplistic fix by defining strlength to unsigned long enables the program to work but there are many other ULONG uses in rexxsaa.h (APIRET for one) so it is unclear if additional work is required.