<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Mar 23, 2011, at 4:01 AM, <a href="mailto:vagif.verdi@gmail.com">vagif.verdi@gmail.com</a> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>I have a weird problem ?<br>When preparing sql statements with ? placeholders, hdbc-odbc adds a space to a <br>string value at the end.<br><br>run conn "update sometable set somefield = ? where id = ?" [SqlString "bla", <br>toSql 10]<br><br>Database: Ms Sql Server 2005.<br>Driver: FreeTds on linux<br></div></blockquote></div><br><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. John Goerzen sent a message recently explaining that HDBC needs some more eyes/contributors on it, and particularly the ODBC backend [1].</div><div><br></div><div>In any case, for the moment, you can always avoid bound parameters with hdbc-odbc. I've found support for them to be partial at best anyway.</div><div><br></div><div>Cheers,</div><div>Gershom</div><div><br></div><div>[1]&nbsp;<a href="http://www.haskell.org/pipermail/haskell-cafe/2011-February/089535.html">http://www.haskell.org/pipermail/haskell-cafe/2011-February/089535.html</a></div></body></html>