I have sqlobject-0.8dev (from easysetup). I found the line. I will try it.
Do you know how to test this? I cannot stop the mysql server it is
working for another production website...

Thanks

Dan Pascu a écrit :
> I think this patch looks dubious.
>
> 1. It tries to solve a backend specific issue in the backend agnostic 
> dbconnection module. Importing mysql specific stuff in dbconnection 
> should be a big no-no
> 2. It erroneously considers any OperationalError exception as a need to 
> reconnect, instead of doing this only if the code is 2006 (thus it is 
> hiding errors).
>
>
> A proper fix for this was included in the patch that was send recently to 
> unify the database exceptions.
>
> In short it boils down to add and extra test for the 2006 code in 
> _executeRetry function in mysqlconnection.py
>
> The line:
> if e.args[0] == 2013: # SERVER_LOST error
>
> should read
>
> if e.args[0] in (2006, 2013): # SERVER_GONE or SERVER_LOST
>
>   


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to