<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>I've run into that bug too. I'm pretty sure its an issue with hdbc-odbc, but haven't wanted to patch it without testing it across a few other configurations, which I haven't had time/found straightforward to do.</div></div></blockquote><br></div><div>I should add, for those interested, where I think the bug is. In the bindCol method of Statement.hsc, there's the following:</div><div><br></div><div><span class="Apple-style-span" style="font-family: monospace; font-size: small; ">&nbsp;&nbsp; &nbsp;rc2 &lt;- sqlBindParameter sthptr (fromIntegral icol)</span></div><div><span class="Apple-style-span" style="font-family: monospace; font-size: small; "></span><span class="Apple-style-span" style="font-family: monospace; font-size: small; ">&nbsp;&nbsp; &nbsp; &nbsp; #{const SQL_PARAM_INPUT}</span><span class="Apple-style-span" style="font-family: monospace; font-size: small; "><br></span><span class="Apple-style-span" style="font-family: monospace; font-size: small; ">&nbsp;&nbsp; &nbsp; &nbsp; #{const SQL_C_CHAR} coltype</span><span class="Apple-style-span" style="font-family: monospace; font-size: small; "><br></span><span class="Apple-style-span" style="font-family: monospace; font-size: small; ">&nbsp;&nbsp; &nbsp; &nbsp; (if isOK rc1 then colsize else fromIntegral cslen + 1) decdigits</span><span class="Apple-style-span" style="font-family: monospace; font-size: small; "><br></span><span class="Apple-style-span" style="font-family: monospace; font-size: small; ">&nbsp;&nbsp; &nbsp; &nbsp; csptr (fromIntegral cslen + 1) pcslen</span><span class="Apple-style-span" style="font-family: monospace; font-size: small; "><br></span></div><div><span class="Apple-style-span" style="font-family: monospace; font-size: small; "><br></span></div><div><span class="Apple-style-span" style="font-family: monospace; font-size: small; ">Either one or both of the "fromIntegral csLen + 1" expressions shouldn't have the "+ 1".&nbsp;</span></div><div><span class="Apple-style-span" style="font-family: monospace; font-size: small; "><br></span></div><div><span class="Apple-style-span" style="font-family: monospace; font-size: small; ">Cheers,</span></div><div><span class="Apple-style-span" style="font-family: monospace; font-size: small; ">Gershom</span></div></body></html>