Gary Bernhardt wrote:
> On 9/8/06, Michael Bayer <[EMAIL PROTECTED]> wrote:
>
> It might be nice if SA complained about modified PKs.  It sure would've
> saved me a lot of time. :)  Of course, it may be undesirable or
> impractical
> for reasons I'm not aware of.

this actually should be pretty easy to implement and i thought of the same
thing last night.  it just involves comparing the "_instance_key"
attribute to the column attributes on the instance.  im pretty sure that
your test program does result in the column attributes being modified to
the new values within the flush, its just the "save" procedure
intentionally skips creating SET clauses for primary key columns...so
throwing an error is more desireable.


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Sqlalchemy-users mailing list
Sqlalchemy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users

Reply via email to