<!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">
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.<br>
<br>
Cees De Groot wrote:
<blockquote
 cite="mid330b6fd60511070316i2784f9a3gd05b4f555c15eea2@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="">#8  0x777b6931 in __throw () from /usr/lib/libstdc++-libc6.2-2.so.3
#9  0x77815155 in SQLConnect () from /opt/cache/bin/libcachecurrent.so
#10 0x7794755a in SQLConnect (connection_handle=0x815edc8,
    </pre>
  </blockquote>
  <pre wrap=""><!---->server_name=0x8161758 "Samples", name_length1=-3, user_name=0x81602b0
"foo", name_length2=-3, authentication=0x81602c0 "bar", name_length3=-3)
   at SQLConnect.c:3825

*minus* 3 in these lengths? If that's correct and I were an ODBC
driver, I'd quit as well...



 
  </pre>
</blockquote>
<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>