freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: "Frediano Ziglio" <freddy77 AT gmail.com>
- To: "FreeTDS Development Group" <freetds AT lists.ibiblio.org>
- Subject: Re: [freetds] Problems with UnixODBC and FreeTDS
- Date: Wed, 11 Jul 2007 09:26:51 +0200
2007/7/10, Luke Benstead <kazade AT gmail.com>:
I've managed to work out exactly when it crashes. If you select a text
field
that is blank (i.e not NULL but empty) it crashes, here is the minimal
python code:
import pyodbc
if __name__ == '__main__':
strSQL="""
SELECT BlankField FROM SomeTable
"""
cnxn = pyodbc.connect
('DRIVER={FreeTDS};SERVERNAME=server;DATABASE=db;UID=user;PWD=password')
cursor = cnxn.cursor()
cursor.execute(strSQL)
print cursor.fetchall()
Hope that helps.
Luke.
Ok, I understand the problem. When text is empty SQL_NO_DATA is returned and
string is not null-terminated. On the first call SQLGetData should return
SQL_SUCCESS instead. Note that pyODBC should check SQLGetData results.
Currently I'm attempting a course at Milano so I'm not able to do a
patch for this problem... expect a patch for next week... if I don't find an
alternate way before...
freddy77
-
[freetds] Problems with UnixODBC and FreeTDS,
Luke Benstead, 07/06/2007
-
Re: [freetds] Problems with UnixODBC and FreeTDS,
Frediano Ziglio, 07/06/2007
-
Re: [freetds] Problems with UnixODBC and FreeTDS,
James K. Lowden, 07/06/2007
-
Re: [freetds] Problems with UnixODBC and FreeTDS,
Frediano Ziglio, 07/07/2007
-
Re: [freetds] Problems with UnixODBC and FreeTDS,
Luke Benstead, 07/09/2007
-
Re: [freetds] Problems with UnixODBC and FreeTDS,
Luke Benstead, 07/09/2007
-
Re: [freetds] Problems with UnixODBC and FreeTDS,
Frediano Ziglio, 07/10/2007
- Re: [freetds] Problems with UnixODBC and FreeTDS, Luke Benstead, 07/10/2007
- Re: [freetds] Problems with UnixODBC and FreeTDS, Frediano Ziglio, 07/11/2007
- Re: [freetds] Problems with UnixODBC and FreeTDS, Frediano Ziglio, 07/12/2007
- Re: [freetds] Problems with UnixODBC and FreeTDS, Frediano Ziglio, 07/13/2007
- Re: [freetds] Problems with UnixODBC and FreeTDS, Luke Benstead, 07/13/2007
- [freetds] dbrpcsend() returning prematurely, Tim Cook, 07/13/2007
- Re: [freetds] dbrpcsend() returning prematurely, James K. Lowden, 07/13/2007
-
Re: [freetds] Problems with UnixODBC and FreeTDS,
Frediano Ziglio, 07/10/2007
-
Re: [freetds] Problems with UnixODBC and FreeTDS,
Luke Benstead, 07/09/2007
-
Re: [freetds] Problems with UnixODBC and FreeTDS,
Luke Benstead, 07/09/2007
-
Re: [freetds] Problems with UnixODBC and FreeTDS,
Frediano Ziglio, 07/07/2007
-
Re: [freetds] Problems with UnixODBC and FreeTDS,
James K. Lowden, 07/06/2007
-
Re: [freetds] Problems with UnixODBC and FreeTDS,
Frediano Ziglio, 07/06/2007
Archive powered by MHonArc 2.6.24.