From 281955949910eb257b5f7e42e54535ba7812418e Mon Sep 17 00:00:00 2001
From: Melanie Thielker
Date: Sun, 14 Sep 2008 13:23:02 +0000
Subject: Mantis #2124 Thank you, RuudL, for a patch that brings MSSQL up to
the same implementation level as MySQL.
---
OpenSim/Data/SQLite/SQLiteGridData.cs | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
(limited to 'OpenSim/Data/SQLite/SQLiteGridData.cs')
diff --git a/OpenSim/Data/SQLite/SQLiteGridData.cs b/OpenSim/Data/SQLite/SQLiteGridData.cs
index f715c0e..3e1c67a 100644
--- a/OpenSim/Data/SQLite/SQLiteGridData.cs
+++ b/OpenSim/Data/SQLite/SQLiteGridData.cs
@@ -210,6 +210,25 @@ namespace OpenSim.Data.SQLite
return AddProfile(profile);
}
+ ///
+ /// Deletes a sim profile from the database
+ ///
+ /// the sim UUID
+ /// Successful?
+ //public DataResponse DeleteProfile(RegionProfileData profile)
+ override public DataResponse DeleteProfile(string uuid)
+ {
+ Dictionary param = new Dictionary();
+ param["uuid"] = uuid;
+
+ IDbCommand result = database.Query("DELETE FROM regions WHERE uuid = @uuid", param);
+ if (result.ExecuteNonQuery() > 0)
+ {
+ return DataResponse.RESPONSE_OK;
+ }
+ return DataResponse.RESPONSE_ERROR;
+ }
+
///
/// DEPRECATED. Attempts to authenticate a region by comparing a shared secret.
///
--
cgit v1.1