[Python-modules-team] Bug#768194: [python-psycopg2]	extensions.ISOLATION_LEVEL_AUTOCOMMIT should disappear
    Scott Kitterman 
    debian at kitterman.com
       
    Mon Jun 22 21:29:33 UTC 2015
    
    
  
On Wednesday, November 05, 2014 10:10:52 PM Bzzzz wrote:
> Package: python-psycopg2
> Version: 2.5.4+dfsg-1
> Severity: normal
> 
> --- Please enter the report below this line. ---
> 
> Ho folks,
> 
> Or at the very least, doc should clearly state that it MUST NOT
> be used into 'set_session()')'.
> 
> Because issuing:
> connection.set_session(psycopg2.extensions.ISOLATION_LEVEL_AUTOCOMMIT,
>     readonly=True, deferrable=False, autocommit=True)
> 
> fails with the following message:
> ValueError: isolation_level must be between 1 and 4
> (œuf corse, as psycopg2.extensions.ISOLATION_LEVEL_AUTOCOMMIT == 0)
Fixed upstream by improving the documentation in this commit:
https://github.com/psycopg/psycopg2/commit/f27ca25d2e1cf2236444ecad9cf6eafb01efb77e
Scott K
    
    
More information about the Python-modules-team
mailing list