On 1/16/07, Oleg Broytmann <[EMAIL PROTECTED]> wrote:
On Sat, Dec 30, 2006 at 04:29:41PM +0100, Markus Gritsch wrote:
> Just FYI: I made a small hack to my local SQLObject which solves the
> reconnect problem for me without recompiling MySQLdb.  The patch is
> attached, but as already said, it's just a hack.  Thanks to anyone
> involved.

   Could that _runWithConnection() be copied to mysqlconnection.py? Then it
could be applied.

Unfortunately, I had to further modify the previous patch to get
reconnected in all cases: The __init__ method of the Iteration class
has also to use the hack.  Further, due to my missing insight into the
inner workings of SQLObject, I totally neglect the self._pool stuff of
DBAPI, which (I have the feeling) is not perfect -- therefore I
labeled the patch to be a hack.

However, if you could look at the attached final patch and have any
idea if neglecting the self._pool stuff is ok, that would be nice.

Kind regards,
Markus

Attachment: sqlobject-0.8.0b1.patch
Description: Binary data

-------------------------------------------------------------------------
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