Re: Error in ct_options

Dave Cole <[email protected]>
Newsgroups gmane.comp.python.sybase
Message-ID <[email protected]>
> First, thank you for the module in general and for the fast answer
> in particular.
> 
> I suppose you meant 
> -            if status != CS_SUCCEED:
> -                self._raise_error(Error, 'ct_options')
> +           self.auto_commit = (status != CS_SUCCEED)
>                                          ^^^^^^
> 
> Well, now it connects alright, but I don't get auto-commit off, do
> I? I do want standard dbapi behavior.
> 
> Would it be ok to just execute 
> c.execute('set implicit_transactions on') on the connection?

Does anyone know if there is a standard way to disable auto commit on
both Sybase and SQL Server?

- Dave

-- 
http://www.object-craft.com.au
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.