I think that this might cause problems in high-concurrency situations:

user a: selects max ID (23)
user b: selects max ID (23)
users a and b insert features
user a: selects max ID (25)
user b: selects max ID (25)

??

Jason

-----Original Message-----
From: Dave Wilson
Subject: RE: [mapguide-users] How to get an auto-generated
IdafterInsertFeature ?

Another approach might be to select the Max Id before the insert and
select the Max Id after the insert. I don't believe the Id's get
assigned such that they will use existing gaps (from deleted features)
so the new Id should always be higher correct?

Dave
_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Reply via email to