Sequence doesnt map super-great either since you can also execute a Sequence by itself using its execute() method....but it is a nice place to put the start value/auto-increment. having failing unit tests is a requirement for pretty much every database there is since no DB that supports every behavior; thats why we have the "@unsupported" decorator in the unittests. I cant see when the "SET IDENTITY_INSERT" trick would be appropriate; since SA is literally going to turn it on and off for individual rows which probably obliterates performance, and i would think it blows away any hope of proper concurrent behavior as well (unless the once-per-table restriciton is only per-connection?). which basic unit tests fail if we just get rid of "SET IDENTITY_INSERT" ? if those unit tests just need a "Sequence" added to the appropriate columns thats fine; Oracle has the same issue. On Sep 11, 2006, at 10:16 AM, Rick Morrison wrote: The column definition in MSSQL already allows the specification of an IDENTITY column by using the Sequence() class; see the MSSQL module header docstring for some details. |
------------------------------------------------------------------------- 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