* Discerned between AddProfile and UpdateProfile in region registration

:: Believe it or not, but INSERT/UPDATE is actually a better pattern than REPLACE, since, with INSERT/UPDATE you can catch erroneous UPDATES to non-INSERTed items as well as catch erroneous re-INSERTS. in 95% of the cases, you SHOULD have a clear INSERT context, and a clear and separate UPDATE context. If you think your case falls within the 5%, maybe you should re-evaluate your code. ::
This commit is contained in:
lbsa71
2008-04-11 09:56:22 +00:00
parent 00b8e04ece
commit cbf9fcfac5
7 changed files with 106 additions and 13 deletions

View File

@@ -113,6 +113,8 @@ namespace OpenSim.Data
/// <returns>RESPONSE_OK if successful, error if not.</returns>
DataResponse AddProfile(RegionProfileData profile);
DataResponse UpdateProfile(RegionProfileData profile);
ReservationData GetReservationAtPoint(uint x, uint y);
}
}