On Tue, Mar 20, 2007 at 10:53:04AM -0300, Jorge Godoy wrote: > Shouldn't both be updated in the same command since I used a ".set()" instead > of updating each attribute separately? I'd expect it to run one command
.set() runs as many UPDATEs as there are non-plain setters. ForeignKey is a non-plain setter. Other non-plain setters are methods named like "_set_COLUMN_NAME". All plain setters are grouped into one UPDATE, of course. > If I needed to guarantee that only one update was run, should I use sqlbuilder > instead? Yes. Oleg. -- Oleg Broytmann http://phd.pp.ru/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ------------------------------------------------------------------------- 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