diff options
author | lbsa71 | 2008-04-11 09:56:22 +0000 |
---|---|---|
committer | lbsa71 | 2008-04-11 09:56:22 +0000 |
commit | cbf9fcfac591bd8c8fcbccaa562c7a5fa05c4d9c (patch) | |
tree | f2172eccc3652e6f5bccc2be3cf71ec838801f47 /OpenSim/Data/GridDataBase.cs | |
parent | * Added a "regionload_regionsdir" option to OpenSim.ini which determines wher... (diff) | |
download | opensim-SC_OLD-cbf9fcfac591bd8c8fcbccaa562c7a5fa05c4d9c.zip opensim-SC_OLD-cbf9fcfac591bd8c8fcbccaa562c7a5fa05c4d9c.tar.gz opensim-SC_OLD-cbf9fcfac591bd8c8fcbccaa562c7a5fa05c4d9c.tar.bz2 opensim-SC_OLD-cbf9fcfac591bd8c8fcbccaa562c7a5fa05c4d9c.tar.xz |
* 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. ::
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Data/GridDataBase.cs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/OpenSim/Data/GridDataBase.cs b/OpenSim/Data/GridDataBase.cs index 004ec9b..5648c34 100644 --- a/OpenSim/Data/GridDataBase.cs +++ b/OpenSim/Data/GridDataBase.cs | |||
@@ -18,5 +18,6 @@ namespace OpenSim.Data | |||
18 | public abstract string getVersion(); | 18 | public abstract string getVersion(); |
19 | public abstract DataResponse AddProfile(RegionProfileData profile); | 19 | public abstract DataResponse AddProfile(RegionProfileData profile); |
20 | public abstract ReservationData GetReservationAtPoint(uint x, uint y); | 20 | public abstract ReservationData GetReservationAtPoint(uint x, uint y); |
21 | public abstract DataResponse UpdateProfile(RegionProfileData profile); | ||
21 | } | 22 | } |
22 | } | 23 | } |