<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 31: DB2 - sqlcli.h defines ULONG as 32-bits</title><link href="https://sourceforge.net/p/rexxsql/support-requests/31/" rel="alternate"/><link href="https://sourceforge.net/p/rexxsql/support-requests/31/feed.atom" rel="self"/><id>https://sourceforge.net/p/rexxsql/support-requests/31/</id><updated>2017-11-11T17:35:12.452000Z</updated><subtitle>Recent changes to 31: DB2 - sqlcli.h defines ULONG as 32-bits</subtitle><entry><title>DB2 - sqlcli.h defines ULONG as 32-bits</title><link href="https://sourceforge.net/p/rexxsql/support-requests/31/" rel="alternate"/><published>2017-11-11T17:35:12.452000Z</published><updated>2017-11-11T17:35:12.452000Z</updated><author><name>Neale Ferguson</name><uri>https://sourceforge.net/u/userid-2170886/</uri></author><id>https://sourceforge.net7238bb86a2846a033b4c4e27ffbdc8d155539cca</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;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.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>