Re: newbie problem
Laurent VASSEUR <[email protected]>
| Newsgroups | gmane.comp.python.sybase |
|---|---|
| Message-ID | <[email protected]> |
I have the same problem with a simple select statement. I'm using the sybase libraries. Laurent A 15:37 14/01/2003 +0100, vous avez écrit : On Tue, 14 Jan 2003 09:43:50 +0100 Laurent VASSEUR <[email protected]> wrote: > hi, > > I've just installed the Sybase module on solaris 2.7 / > python 2.2. I tried the following program to test it, but > it fails... > > #!/bin/env python > import Sybase > Sybase._ctx.debug = 1 > import sys > > db=Sybase.connect('DB','USR', 'PWD', database='test') > c=db.cursor() > > db.begin() > c.callproc('sp_help') > db.commit() > > c.close () > db.close () > sys.exit() > (...) Does it work with a simple SELECT statement? Or do you have the problem only when calling callproc()? Are you using the sybase libraries or freetds? Peter