Bugs item #1334786, was opened at 2005-10-22 11:30
Message generated for change (Comment added) made by dpinte
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=540672&aid=1334786&group_id=74338
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: M. Dietrich (mdt)
Assigned to: Nobody/Anonymous (nobody)
Summary: infinitiv recursion in Transaction.__del__
Initial Comment:
using ThreadConnections i get a
Exception exceptions.RuntimeError: 'maximum recursion
depth exceeded' in <bound method Transaction.__del__ of
<sqlobject.dbconnection.Transaction object at
0xaedb714c>> ignored
, commenting __del__() works in the first place. can't
figure out what this __del__ is for...
----------------------------------------------------------------------
Comment By: Didrik Pinte (dpinte)
Date: 2006-01-24 10:20
Message:
Logged In: YES
user_id=970259
Same here,
I can reproduce it. It happens when the database is not started.
Here is a test code :
Step 1 :
Shut down you postgres server
Step 2 : Run the following
-------------------------
import sqlobject
scheme = "postgres://myusername:mypassword@localhost/mydb"
connection = sqlobject.connectionForURI(scheme)
sqlobject.sqlhub.processConnection = connection
sqlhub.threadConnection = connection.transaction()
--------------------------
Didrik
----------------------------------------------------------------------
Comment By: xiao hai tong (haitong)
Date: 2005-12-04 18:35
Message:
Logged In: YES
user_id=146934
I encount it too.
once is too many connection crash my pgsql server on
windows, then may of such exceptions reported.
other time:
a multi thread test program.
I want to retry my transaction when excecption occured
during commit, I commet the threadConnection.rollback(),
just set
threadConnection = g_conn.transaction(), and redo the
transaction
after seconds, such exceptions occurred.
----------------------------------------------------------------------
Comment By: Oleg Broytmann (phd)
Date: 2005-10-25 18:12
Message:
Logged In: YES
user_id=4799
Can you make a little test program that demonstrates the
problem?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=540672&aid=1334786&group_id=74338
|