[python-sybase] Pulling my hair out about a query...
Dave Cole
djc at object-craft.com.au
Wed, 23 Jun 2004 10:48:41 +1000
Skip Montanaro wrote:
> Dave> Can you try doing something like the following:
>
> Dave> import Sybase
>
> Dave> Sybase.set_debug(open('debug.log', 'w'))
> Dave> :
> Dave> conn = Sybase.Connection(..., debug=1)
> Dave> :
>
> Dave,
>
> Thanks for the response. Alas, there is no debug arg to the Connection
> class constructor. (I'm using 0.36.) With just the set_debug() call
> nothing turns up in debug.log. Is the debug argument something that's only
> available from CVS?
Ooops. I was confusing the Sybase module with another one of my
modules... Should have checked the code. Try this:
import Sybase
Sybase._ctx.debug = 1
Sybase.set_debug(open('debug.log', 'w'))
:
- Dave
--
http://www.object-craft.com.au