>    Shouldn't that be
> sqlhub.threadConnection = connectionForURI(connuri)
 >
>      for i in range(1000):
>          try:
>              a = AAA(value=1)
>          except dberrors.DuplicateEntryError:
>              a = AAA.byValue(1)

Can't find any documentation for sqlhub.threadConnection, but I've tried 
setting it in the main process before threads are created, and/or 
separately in each thread.

I still get the occasional "Commands out of sync..." exception from MySQLdb.

- n

-- 
Dr. Nathan Edwards                      [EMAIL PROTECTED]
Department of Biochemistry and Molecular & Cellular Biology
            Georgetown University Medical Center
Room 1215, Harris Building          Room 347, Basic Science
3300 Whitehaven St, NW              3900 Reservoir Road, NW
Washington DC 20007                     Washington DC 20007
Phone: 202-687-7042                     Phone: 202-687-1618
Fax: 202-687-0057                         Fax: 202-687-7186

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to