Ian--

SQLObject updates each field individually, if your
code is written as you show below.  However, there is
a way to update multilple fields at the same time by
using the 'set' method, i.e. myobject.set(name='fred',
id=1).  

I'm not sure SQLObject supports updating the primary
key (id) as shown in your example.

--Mark C. Mueller

--- Ian Sparks <[EMAIL PROTECTED]> wrote:
> I haven't used either model but I was under the
> impression that SQLObject fired off SQL UPDATE
> statements for every change of an object property.
> 
> e.g.
> 
> myobject.name = "fred"
> myobject.id = 1
> 
> breaks down into two SQL statements :
> 
> UPDATE <table> SET NAME = "FRED" WHERE ....
> UPDATE <table> SET ID = 1 WHERE ....
> 
> I'm not sure if this is true or if MiddleKit does
> the same thing? Someone please correct me.
> 
> Also, has anyone looked at Modeling?
> http://modeling.sourceforge.net/
> 
> -----Original Message-----
> From: mike [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 04, 2003 4:00 AM
> To: [EMAIL PROTECTED]
> Subject: [Webware-discuss] MiddleKit vs sqlobject
> 
> 
> I am just wondering whether somebody could briefly
> compare sqlbject (or any
> similar module) with MiddleKit. Personally,
> sqlobject looks to me more
> flexible for basic database operations, but it would
> be nice to know what
> others prefer to use with WebKit.
> 
> Thanks,
> mike
> 
> 
> 
> 
>
-------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Webware-discuss mailing list
> [EMAIL PROTECTED]
>
https://lists.sourceforge.net/lists/listinfo/webware-discuss
> 
> 
>
-------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Webware-discuss mailing list
> [EMAIL PROTECTED]
>
https://lists.sourceforge.net/lists/listinfo/webware-discuss


__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to