On Tue, Feb 19, 2008 at 06:38:26PM +0100, Sophana wrote:
> Could you please explain the process of creating a new row instance?

   SQLObject.__init__() calls ._create() that calls .set() with
sqlmeta._creating set; .set() collects the initializations values in
._SO_createValues dictionary; ._create() then calls ._SO_finishCreate()
that calls _connection.queryInsertID() to insert a new row and get back its
id; then ._SO_finishCreate() calls ._init() that selects back the inserted
row via _connection._SO_selectOne().
   By some strange reason the last step sometimes fails and
_connection._SO_selectOne() doesn't return a row.

> The mysql server is multi master replicated, can this cause such a problem?

   No idea.

Oleg.
-- 
     Oleg Broytmann            http://phd.pp.ru/            [EMAIL PROTECTED]
           Programmers don't die, they just GOSUB without RETURN.

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