<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Cees De Groot wrote:
<blockquote
 cite="mid330b6fd60511070333l6b347a4drff1cad93045ef770@mail.gmail.com"
 type="cite">
  <pre wrap="">On 11/7/05, Simon Kirk <a class="moz-txt-link-rfc2396E" href="mailto:Simon.Kirk@pinesoft.co.uk">&lt;Simon.Kirk@pinesoft.co.uk&gt;</a> wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap=""> Don't panic :) -3 is the ODBC API constant for a null-terminated string
(SQL_NTS) - so it's perfectly valid - it just makes the driver manager
(and/or driver) read the string values being sent up until the first null
terminator character (and for the record I did check in gdb that all the
strings had the required null termination character - they all did). I did
wonder whether I should explain that when I posted, and forgot to mention
it. Ahem. I did try the call with a fixed-length description as well (ie
putting the real lengths in instead of using the SQL_NTS constant) but it
made no difference.

    </pre>
  </blockquote>
  <pre wrap=""><!---->Ok. Should've remembered that (I wrote these damn drivers for a
living) but luckily I seem to have forgotten most of that awful stuff
:).

So much for the simple explanation :)


  </pre>
</blockquote>
Heh, how I wish it was that: but I think I've eliminated every simple
explanation. I'm still hopeful that I've missed something simple
though, to prevent a complicated solution ;)<br>
<br><br>
<P align=center><FONT style="BACKGROUND-COLOR: #ffffff">This message has been scanned for viruses by </FONT><A href="http://www.blackspider.com/"><FONT style="BACKGROUND-COLOR: #ffffff" color=#000000>BlackSpider MailControl</FONT></A></P>
</body>
</html>