freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: Alex Hornby <alex AT anvil.co.uk>
- To: TDS Development Group <freetds AT franklin.metalab.unc.edu>
- Subject: ODBC troubles with nightly snapshot
- Date: 21 Jun 2002 18:22:05 +0100
Hi,
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).
e.g.
$ isql (this is unixODBCs isql!)
SQL> select * from BOOK
+-----------+---------------------+---------------------+---------+-----------------------------------------------------------------------------------------------------+---------+---------+
| | | |
|
| | |
+-----------+---------------------+---------------------+---------+-----------------------------------------------------------------------------------------------------+---------+---------+
| 1 Segmentation fault (core dumped)
The tsql client works fine, so I know that I can connect to the DB okay.
Cheers,
Alex.
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
#3 0x4023021c in convert_tds2sql (locale=0x804ff90, srctype=47,
src=0x805e838 "LON", ' ' <repeats 17 times>, srclen=4294967295,
desttype=1, dest=0xbfff3a58 "1", destlen=301) at
convert_tds2sql.c:109
#4 0x4022e94a in SQLGetData (hstmt=0x80594e0, icol=2, fCType=1,
rgbValue=0xbfff3a58, cbValueMax=301, pcbValue=0xbfff391c) at
odbc.c:1509
#5 0x4002ecad in SQLGetData (statement_handle=0x805d5f0,
column_number=2,
target_type=1, target_value=0xbfff3a58, buffer_length=301,
strlen_or_ind=0xbfff391c) at SQLGetData.c:356
#6 0x0804a34d in WriteBodyNormal (hStmt=0x805d5f0) at isql.c:601
#7 0x08049679 in ExecuteSQL (hDbc=0x804ceb0,
szSQL=0xbfffba6c "select * from BOOK", cDelimiter=0, bColumnNames=0,
bHTMLTable=0) at isql.c:278
#8 0x08049301 in main (argc=4, argv=0xbfffe174) at isql.c:166
#9 0x401469cb in __libc_start_main (main=0x8048e20 <main>, argc=4,
argv=0xbfffe174, init=0x8048a8c <_init>, fini=0x804a844 <_fini>,
rtld_fini=0x4000aea0 <_dl_fini>, stack_end=0xbfffe16c)
at ../sysdeps/generic/libc-start.c:92
-
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.