freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: "Lowden, James K" <LowdenJK AT bernstein.com>
- To: "'TDS Development Group'" <freetds AT franklin.metalab.unc.edu>
- Subject: RE: ODBC troubles with nightly snapshot
- Date: Fri, 21 Jun 2002 13:38:09 -0400
> From: Alex Hornby [mailto:alex AT anvil.co.uk]
> Sent: June 21, 2002 1:22 PM
>
> The TDS odbc driver doesn't seem to work for me with unixODBC-2.2.0
> connecting to a sybase 11.9.2 server (both on redhat 6.2).
>
> A backtrace shows:
>
> (gdb) bt
> #0 0x4018e487 in memcpy (dstpp=0x8058b18, srcpp=0x805e838,
> len=4294967295)
> at ../sysdeps/generic/memcpy.c:55
> #1 0x40238727 in tds_convert_char (srctype=47,
> src=0x805e838 "LON", ' ' <repeats 17 times>, srclen=4294967295,
> desttype=47, dest=0xbfff3a58 "1", destlen=301) at convert.c:253
> #2 0x4023a01b in tds_convert (locale=0x804ff90, srctype=47,
> src=0x805e838 "LON", ' ' <repeats 17 times>, srclen=4294967295,
> desttype=47, dest=0xbfff3a58 "1", destlen=301) at convert.c:935
Alex,
Nice bt.
srclen=4294967295? Methinks you need "set TEXTSIZE 8000" or so somewhere.
:)
Some drivers initialize the connection with a size; we let the server do
what it wants.
One of these days, I'm gonna put a very polite error message in
tds_convert_char that reminds the caller to "set TEXTSIZE to some plausible
number". Segfaulting without checking is unhelpful. :/
ISTR Brian talking about making TEXTSIZE an item in freetds.conf, but I
don't see it in the docs, so I guess it's not there.
Cheers,
--jkl
-
ODBC troubles with nightly snapshot,
Alex Hornby, 06/21/2002
- <Possible follow-up(s)>
- RE: ODBC troubles with nightly snapshot, Lowden, James K, 06/21/2002
- RE: ODBC troubles with nightly snapshot, Brian Bruns, 06/21/2002
- RE: ODBC troubles with nightly snapshot, James K . Lowden, 06/21/2002
- RE: ODBC troubles with nightly snapshot, Detlef Steuer, 06/24/2002
- RE: ODBC troubles with nightly snapshot, Lowden, James K, 06/24/2002
- RE: ODBC troubles with nightly snapshot, ZIGLIO Frediano, 06/24/2002
- RE: ODBC troubles with nightly snapshot, Lowden, James K, 06/24/2002
- RE: ODBC troubles with nightly snapshot, Sam Denton, 06/24/2002
- RE: ODBC troubles with nightly snapshot, Alex Hornby, 06/28/2002
Archive powered by MHonArc 2.6.24.