aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Data
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/Data.DB4o/Properties/AssemblyInfo.cs30
-rw-r--r--OpenSim/Framework/Data.MSSQL/MSSQLManager.cs12
-rw-r--r--OpenSim/Framework/Data.MSSQL/Properties/AssemblyInfo.cs30
-rw-r--r--OpenSim/Framework/Data.MySQL/MySQLDataStore.cs10
-rw-r--r--OpenSim/Framework/Data.MySQL/MySQLGridData.cs6
-rw-r--r--OpenSim/Framework/Data.MySQL/MySQLManager.cs12
-rw-r--r--OpenSim/Framework/Data.MySQL/MySQLUserData.cs6
-rw-r--r--OpenSim/Framework/Data.MySQL/Properties/AssemblyInfo.cs30
-rw-r--r--OpenSim/Framework/Data.SQLite/Properties/AssemblyInfo.cs30
-rw-r--r--OpenSim/Framework/Data.SQLite/SQLiteBase.cs4
-rw-r--r--OpenSim/Framework/Data.SQLite/SQLiteRegionData.cs4
-rw-r--r--OpenSim/Framework/Data.SQLite/SQLiteUserData.cs4
-rw-r--r--OpenSim/Framework/Data/Properties/AssemblyInfo.cs30
-rw-r--r--OpenSim/Framework/Data/RegionProfileData.cs28
-rw-r--r--OpenSim/Framework/Data/ReservationData.cs8
15 files changed, 192 insertions, 52 deletions
diff --git a/OpenSim/Framework/Data.DB4o/Properties/AssemblyInfo.cs b/OpenSim/Framework/Data.DB4o/Properties/AssemblyInfo.cs
index 6183b6e..af181e4 100644
--- a/OpenSim/Framework/Data.DB4o/Properties/AssemblyInfo.cs
+++ b/OpenSim/Framework/Data.DB4o/Properties/AssemblyInfo.cs
@@ -1,3 +1,31 @@
1/*
2* Copyright (c) Contributors, http://opensimulator.org/
3* See CONTRIBUTORS.TXT for a full list of copyright holders.
4*
5* Redistribution and use in source and binary forms, with or without
6* modification, are permitted provided that the following conditions are met:
7* * Redistributions of source code must retain the above copyright
8* notice, this list of conditions and the following disclaimer.
9* * Redistributions in binary form must reproduce the above copyright
10* notice, this list of conditions and the following disclaimer in the
11* documentation and/or other materials provided with the distribution.
12* * Neither the name of the OpenSim Project nor the
13* names of its contributors may be used to endorse or promote products
14* derived from this software without specific prior written permission.
15*
16* THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
17* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19* DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
20* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26*
27*/
28
1using System.Reflection; 29using System.Reflection;
2using System.Runtime.InteropServices; 30using System.Runtime.InteropServices;
3 31
@@ -10,7 +38,7 @@ using System.Runtime.InteropServices;
10[assembly : AssemblyConfiguration("")] 38[assembly : AssemblyConfiguration("")]
11[assembly : AssemblyCompany("")] 39[assembly : AssemblyCompany("")]
12[assembly : AssemblyProduct("OpenSim.Framework.Data.DB4o")] 40[assembly : AssemblyProduct("OpenSim.Framework.Data.DB4o")]
13[assembly : AssemblyCopyright("Copyright © 2007")] 41[assembly : AssemblyCopyright("Copyright © OpenSimulator.org Developers 2007-2008")]
14[assembly : AssemblyTrademark("")] 42[assembly : AssemblyTrademark("")]
15[assembly : AssemblyCulture("")] 43[assembly : AssemblyCulture("")]
16 44
diff --git a/OpenSim/Framework/Data.MSSQL/MSSQLManager.cs b/OpenSim/Framework/Data.MSSQL/MSSQLManager.cs
index bf57492..3a70909 100644
--- a/OpenSim/Framework/Data.MSSQL/MSSQLManager.cs
+++ b/OpenSim/Framework/Data.MSSQL/MSSQLManager.cs
@@ -186,7 +186,7 @@ namespace OpenSim.Framework.Data.MSSQL
186 protected static string defineTable(DataTable dt) 186 protected static string defineTable(DataTable dt)
187 { 187 {
188 string sql = "create table " + dt.TableName + "("; 188 string sql = "create table " + dt.TableName + "(";
189 string subsql = ""; 189 string subsql = String.Empty;
190 foreach (DataColumn col in dt.Columns) 190 foreach (DataColumn col in dt.Columns)
191 { 191 {
192 if (subsql.Length > 0) 192 if (subsql.Length > 0)
@@ -337,7 +337,7 @@ namespace OpenSim.Framework.Data.MSSQL
337 337
338 // World Map Addition 338 // World Map Addition
339 string tempRegionMap = reader["regionMapTexture"].ToString(); 339 string tempRegionMap = reader["regionMapTexture"].ToString();
340 if (tempRegionMap != "") 340 if (tempRegionMap != String.Empty)
341 { 341 {
342 regionprofile.regionMapTextureID = new LLUUID(tempRegionMap); 342 regionprofile.regionMapTextureID = new LLUUID(tempRegionMap);
343 } 343 }
@@ -644,12 +644,12 @@ namespace OpenSim.Framework.Data.MSSQL
644 parameters["homeLookAtZ"] = homeLookAtZ.ToString(); 644 parameters["homeLookAtZ"] = homeLookAtZ.ToString();
645 parameters["created"] = created.ToString(); 645 parameters["created"] = created.ToString();
646 parameters["lastLogin"] = lastlogin.ToString(); 646 parameters["lastLogin"] = lastlogin.ToString();
647 parameters["userInventoryURI"] = ""; 647 parameters["userInventoryURI"] = String.Empty;
648 parameters["userAssetURI"] = ""; 648 parameters["userAssetURI"] = String.Empty;
649 parameters["profileCanDoMask"] = "0"; 649 parameters["profileCanDoMask"] = "0";
650 parameters["profileWantDoMask"] = "0"; 650 parameters["profileWantDoMask"] = "0";
651 parameters["profileAboutText"] = ""; 651 parameters["profileAboutText"] = String.Empty;
652 parameters["profileFirstText"] = ""; 652 parameters["profileFirstText"] = String.Empty;
653 parameters["profileImage"] = LLUUID.Zero.ToString(); 653 parameters["profileImage"] = LLUUID.Zero.ToString();
654 parameters["profileFirstImage"] = LLUUID.Zero.ToString(); 654 parameters["profileFirstImage"] = LLUUID.Zero.ToString();
655 parameters["webLoginKey"] = LLUUID.Random().ToString(); 655 parameters["webLoginKey"] = LLUUID.Random().ToString();
diff --git a/OpenSim/Framework/Data.MSSQL/Properties/AssemblyInfo.cs b/OpenSim/Framework/Data.MSSQL/Properties/AssemblyInfo.cs
index 6846ecf..a91ce62 100644
--- a/OpenSim/Framework/Data.MSSQL/Properties/AssemblyInfo.cs
+++ b/OpenSim/Framework/Data.MSSQL/Properties/AssemblyInfo.cs
@@ -1,3 +1,31 @@
1/*
2* Copyright (c) Contributors, http://opensimulator.org/
3* See CONTRIBUTORS.TXT for a full list of copyright holders.
4*
5* Redistribution and use in source and binary forms, with or without
6* modification, are permitted provided that the following conditions are met:
7* * Redistributions of source code must retain the above copyright
8* notice, this list of conditions and the following disclaimer.
9* * Redistributions in binary form must reproduce the above copyright
10* notice, this list of conditions and the following disclaimer in the
11* documentation and/or other materials provided with the distribution.
12* * Neither the name of the OpenSim Project nor the
13* names of its contributors may be used to endorse or promote products
14* derived from this software without specific prior written permission.
15*
16* THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
17* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19* DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
20* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26*
27*/
28
1using System.Reflection; 29using System.Reflection;
2using System.Runtime.InteropServices; 30using System.Runtime.InteropServices;
3 31
@@ -10,7 +38,7 @@ using System.Runtime.InteropServices;
10[assembly : AssemblyConfiguration("")] 38[assembly : AssemblyConfiguration("")]
11[assembly : AssemblyCompany("")] 39[assembly : AssemblyCompany("")]
12[assembly : AssemblyProduct("OpenSim.Framework.Data.MSSQL")] 40[assembly : AssemblyProduct("OpenSim.Framework.Data.MSSQL")]
13[assembly : AssemblyCopyright("Copyright © 2007")] 41[assembly : AssemblyCopyright("Copyright © OpenSimulator.org Developers 2007-2008")]
14[assembly : AssemblyTrademark("")] 42[assembly : AssemblyTrademark("")]
15[assembly : AssemblyCulture("")] 43[assembly : AssemblyCulture("")]
16 44
diff --git a/OpenSim/Framework/Data.MySQL/MySQLDataStore.cs b/OpenSim/Framework/Data.MySQL/MySQLDataStore.cs
index 8055448..26985b3 100644
--- a/OpenSim/Framework/Data.MySQL/MySQLDataStore.cs
+++ b/OpenSim/Framework/Data.MySQL/MySQLDataStore.cs
@@ -485,7 +485,7 @@ namespace OpenSim.Framework.Data.MySQL
485 foreach (DataColumn column in table.Columns) 485 foreach (DataColumn column in table.Columns)
486 Debug.Write(column.ColumnName + " = " + 486 Debug.Write(column.ColumnName + " = " +
487 row[column, DataRowVersion.Original] + ", "); 487 row[column, DataRowVersion.Original] + ", ");
488 Debug.WriteLine(""); 488 Debug.WriteLine(String.Empty);
489 } 489 }
490 //--- Display the current values, if there are any. 490 //--- Display the current values, if there are any.
491 if (row.HasVersion(DataRowVersion.Current)) 491 if (row.HasVersion(DataRowVersion.Current))
@@ -494,9 +494,9 @@ namespace OpenSim.Framework.Data.MySQL
494 foreach (DataColumn column in table.Columns) 494 foreach (DataColumn column in table.Columns)
495 Debug.Write(column.ColumnName + " = " + 495 Debug.Write(column.ColumnName + " = " +
496 row[column, DataRowVersion.Current] + ", "); 496 row[column, DataRowVersion.Current] + ", ");
497 Debug.WriteLine(""); 497 Debug.WriteLine(String.Empty);
498 } 498 }
499 Debug.WriteLine(""); 499 Debug.WriteLine(String.Empty);
500 } 500 }
501 } 501 }
502 } 502 }
@@ -1313,7 +1313,7 @@ namespace OpenSim.Framework.Data.MySQL
1313 private MySqlCommand createUpdateCommand(string table, string pk, DataTable dt) 1313 private MySqlCommand createUpdateCommand(string table, string pk, DataTable dt)
1314 { 1314 {
1315 string sql = "update " + table + " set "; 1315 string sql = "update " + table + " set ";
1316 string subsql = ""; 1316 string subsql = String.Empty;
1317 foreach (DataColumn col in dt.Columns) 1317 foreach (DataColumn col in dt.Columns)
1318 { 1318 {
1319 if (subsql.Length > 0) 1319 if (subsql.Length > 0)
@@ -1341,7 +1341,7 @@ namespace OpenSim.Framework.Data.MySQL
1341 private string defineTable(DataTable dt) 1341 private string defineTable(DataTable dt)
1342 { 1342 {
1343 string sql = "create table " + dt.TableName + "("; 1343 string sql = "create table " + dt.TableName + "(";
1344 string subsql = ""; 1344 string subsql = String.Empty;
1345 foreach (DataColumn col in dt.Columns) 1345 foreach (DataColumn col in dt.Columns)
1346 { 1346 {
1347 if (subsql.Length > 0) 1347 if (subsql.Length > 0)
diff --git a/OpenSim/Framework/Data.MySQL/MySQLGridData.cs b/OpenSim/Framework/Data.MySQL/MySQLGridData.cs
index 7cfac12..c8c4ab0 100644
--- a/OpenSim/Framework/Data.MySQL/MySQLGridData.cs
+++ b/OpenSim/Framework/Data.MySQL/MySQLGridData.cs
@@ -219,8 +219,8 @@ namespace OpenSim.Framework.Data.MySQL
219 if (querysplit.Length == 2) 219 if (querysplit.Length == 2)
220 { 220 {
221 Dictionary<string, string> param = new Dictionary<string, string>(); 221 Dictionary<string, string> param = new Dictionary<string, string>();
222 param["?first"] = objAlphaNumericPattern.Replace(querysplit[0], "") + "%"; 222 param["?first"] = objAlphaNumericPattern.Replace(querysplit[0], String.Empty) + "%";
223 param["?second"] = objAlphaNumericPattern.Replace(querysplit[1], "") + "%"; 223 param["?second"] = objAlphaNumericPattern.Replace(querysplit[1], String.Empty) + "%";
224 try 224 try
225 { 225 {
226 lock (database) 226 lock (database)
@@ -258,7 +258,7 @@ namespace OpenSim.Framework.Data.MySQL
258 lock (database) 258 lock (database)
259 { 259 {
260 Dictionary<string, string> param = new Dictionary<string, string>(); 260 Dictionary<string, string> param = new Dictionary<string, string>();
261 param["?first"] = objAlphaNumericPattern.Replace(querysplit[0], "") + "%"; 261 param["?first"] = objAlphaNumericPattern.Replace(querysplit[0], System.String.Empty) + "%";
262 262
263 IDbCommand result = 263 IDbCommand result =
264 database.Query( 264 database.Query(
diff --git a/OpenSim/Framework/Data.MySQL/MySQLManager.cs b/OpenSim/Framework/Data.MySQL/MySQLManager.cs
index 7645df3..15ccf5f 100644
--- a/OpenSim/Framework/Data.MySQL/MySQLManager.cs
+++ b/OpenSim/Framework/Data.MySQL/MySQLManager.cs
@@ -323,7 +323,7 @@ namespace OpenSim.Framework.Data.MySQL
323 323
324 // World Map Addition 324 // World Map Addition
325 string tempRegionMap = reader["regionMapTexture"].ToString(); 325 string tempRegionMap = reader["regionMapTexture"].ToString();
326 if (tempRegionMap != "") 326 if (tempRegionMap != String.Empty)
327 { 327 {
328 retval.regionMapTextureID = new LLUUID(tempRegionMap); 328 retval.regionMapTextureID = new LLUUID(tempRegionMap);
329 } 329 }
@@ -572,12 +572,12 @@ namespace OpenSim.Framework.Data.MySQL
572 parameters["?homeLookAtZ"] = homeLookAtZ.ToString(); 572 parameters["?homeLookAtZ"] = homeLookAtZ.ToString();
573 parameters["?created"] = created.ToString(); 573 parameters["?created"] = created.ToString();
574 parameters["?lastLogin"] = lastlogin.ToString(); 574 parameters["?lastLogin"] = lastlogin.ToString();
575 parameters["?userInventoryURI"] = ""; 575 parameters["?userInventoryURI"] = String.Empty;
576 parameters["?userAssetURI"] = ""; 576 parameters["?userAssetURI"] = String.Empty;
577 parameters["?profileCanDoMask"] = "0"; 577 parameters["?profileCanDoMask"] = "0";
578 parameters["?profileWantDoMask"] = "0"; 578 parameters["?profileWantDoMask"] = "0";
579 parameters["?profileAboutText"] = ""; 579 parameters["?profileAboutText"] = String.Empty;
580 parameters["?profileFirstText"] = ""; 580 parameters["?profileFirstText"] = String.Empty;
581 parameters["?profileImage"] = LLUUID.Zero.ToString(); 581 parameters["?profileImage"] = LLUUID.Zero.ToString();
582 parameters["?profileFirstImage"] = LLUUID.Zero.ToString(); 582 parameters["?profileFirstImage"] = LLUUID.Zero.ToString();
583 parameters["?webLoginKey"] = LLUUID.Random().ToString(); 583 parameters["?webLoginKey"] = LLUUID.Random().ToString();
@@ -612,7 +612,7 @@ namespace OpenSim.Framework.Data.MySQL
612 { 612 {
613 bool GRID_ONLY_UPDATE_NECESSARY_DATA = false; 613 bool GRID_ONLY_UPDATE_NECESSARY_DATA = false;
614 614
615 string sql = ""; 615 string sql = String.Empty;
616 if (GRID_ONLY_UPDATE_NECESSARY_DATA) 616 if (GRID_ONLY_UPDATE_NECESSARY_DATA)
617 { 617 {
618 sql += "INSERT INTO "; 618 sql += "INSERT INTO ";
diff --git a/OpenSim/Framework/Data.MySQL/MySQLUserData.cs b/OpenSim/Framework/Data.MySQL/MySQLUserData.cs
index 76ad551..f637db6 100644
--- a/OpenSim/Framework/Data.MySQL/MySQLUserData.cs
+++ b/OpenSim/Framework/Data.MySQL/MySQLUserData.cs
@@ -347,8 +347,8 @@ namespace OpenSim.Framework.Data.MySQL
347 if (querysplit.Length == 2) 347 if (querysplit.Length == 2)
348 { 348 {
349 Dictionary<string, string> param = new Dictionary<string, string>(); 349 Dictionary<string, string> param = new Dictionary<string, string>();
350 param["?first"] = objAlphaNumericPattern.Replace(querysplit[0], "") + "%"; 350 param["?first"] = objAlphaNumericPattern.Replace(querysplit[0], String.Empty) + "%";
351 param["?second"] = objAlphaNumericPattern.Replace(querysplit[1], "") + "%"; 351 param["?second"] = objAlphaNumericPattern.Replace(querysplit[1], String.Empty) + "%";
352 try 352 try
353 { 353 {
354 lock (database) 354 lock (database)
@@ -386,7 +386,7 @@ namespace OpenSim.Framework.Data.MySQL
386 lock (database) 386 lock (database)
387 { 387 {
388 Dictionary<string, string> param = new Dictionary<string, string>(); 388 Dictionary<string, string> param = new Dictionary<string, string>();
389 param["?first"] = objAlphaNumericPattern.Replace(querysplit[0], "") + "%"; 389 param["?first"] = objAlphaNumericPattern.Replace(querysplit[0], String.Empty) + "%";
390 390
391 IDbCommand result = 391 IDbCommand result =
392 database.Query( 392 database.Query(
diff --git a/OpenSim/Framework/Data.MySQL/Properties/AssemblyInfo.cs b/OpenSim/Framework/Data.MySQL/Properties/AssemblyInfo.cs
index 7024bfa..b33d319 100644
--- a/OpenSim/Framework/Data.MySQL/Properties/AssemblyInfo.cs
+++ b/OpenSim/Framework/Data.MySQL/Properties/AssemblyInfo.cs
@@ -1,3 +1,31 @@
1/*
2* Copyright (c) Contributors, http://opensimulator.org/
3* See CONTRIBUTORS.TXT for a full list of copyright holders.
4*
5* Redistribution and use in source and binary forms, with or without
6* modification, are permitted provided that the following conditions are met:
7* * Redistributions of source code must retain the above copyright
8* notice, this list of conditions and the following disclaimer.
9* * Redistributions in binary form must reproduce the above copyright
10* notice, this list of conditions and the following disclaimer in the
11* documentation and/or other materials provided with the distribution.
12* * Neither the name of the OpenSim Project nor the
13* names of its contributors may be used to endorse or promote products
14* derived from this software without specific prior written permission.
15*
16* THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
17* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19* DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
20* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26*
27*/
28
1using System.Reflection; 29using System.Reflection;
2using System.Runtime.InteropServices; 30using System.Runtime.InteropServices;
3 31
@@ -10,7 +38,7 @@ using System.Runtime.InteropServices;
10[assembly : AssemblyConfiguration("")] 38[assembly : AssemblyConfiguration("")]
11[assembly : AssemblyCompany("")] 39[assembly : AssemblyCompany("")]
12[assembly : AssemblyProduct("OpenSim.Framework.Data.MySQL")] 40[assembly : AssemblyProduct("OpenSim.Framework.Data.MySQL")]
13[assembly : AssemblyCopyright("Copyright © 2007")] 41[assembly : AssemblyCopyright("Copyright © OpenSimulator.org Developers 2007-2008")]
14[assembly : AssemblyTrademark("")] 42[assembly : AssemblyTrademark("")]
15[assembly : AssemblyCulture("")] 43[assembly : AssemblyCulture("")]
16 44
diff --git a/OpenSim/Framework/Data.SQLite/Properties/AssemblyInfo.cs b/OpenSim/Framework/Data.SQLite/Properties/AssemblyInfo.cs
index 6693c98..5de87c1 100644
--- a/OpenSim/Framework/Data.SQLite/Properties/AssemblyInfo.cs
+++ b/OpenSim/Framework/Data.SQLite/Properties/AssemblyInfo.cs
@@ -1,3 +1,31 @@
1/*
2* Copyright (c) Contributors, http://opensimulator.org/
3* See CONTRIBUTORS.TXT for a full list of copyright holders.
4*
5* Redistribution and use in source and binary forms, with or without
6* modification, are permitted provided that the following conditions are met:
7* * Redistributions of source code must retain the above copyright
8* notice, this list of conditions and the following disclaimer.
9* * Redistributions in binary form must reproduce the above copyright
10* notice, this list of conditions and the following disclaimer in the
11* documentation and/or other materials provided with the distribution.
12* * Neither the name of the OpenSim Project nor the
13* names of its contributors may be used to endorse or promote products
14* derived from this software without specific prior written permission.
15*
16* THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
17* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19* DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
20* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26*
27*/
28
1using System.Reflection; 29using System.Reflection;
2using System.Runtime.InteropServices; 30using System.Runtime.InteropServices;
3 31
@@ -10,7 +38,7 @@ using System.Runtime.InteropServices;
10[assembly : AssemblyConfiguration("")] 38[assembly : AssemblyConfiguration("")]
11[assembly : AssemblyCompany("")] 39[assembly : AssemblyCompany("")]
12[assembly : AssemblyProduct("OpenSim.Framework.Data.SQLite")] 40[assembly : AssemblyProduct("OpenSim.Framework.Data.SQLite")]
13[assembly : AssemblyCopyright("Copyright © 2007")] 41[assembly : AssemblyCopyright("Copyright © OpenSimulator.org Developers 2007-2008")]
14[assembly : AssemblyTrademark("")] 42[assembly : AssemblyTrademark("")]
15[assembly : AssemblyCulture("")] 43[assembly : AssemblyCulture("")]
16 44
diff --git a/OpenSim/Framework/Data.SQLite/SQLiteBase.cs b/OpenSim/Framework/Data.SQLite/SQLiteBase.cs
index 9131a41..87d63a5 100644
--- a/OpenSim/Framework/Data.SQLite/SQLiteBase.cs
+++ b/OpenSim/Framework/Data.SQLite/SQLiteBase.cs
@@ -98,7 +98,7 @@ namespace OpenSim.Framework.Data.SQLite
98 protected static SqliteCommand createUpdateCommand(string table, string pk, DataTable dt) 98 protected static SqliteCommand createUpdateCommand(string table, string pk, DataTable dt)
99 { 99 {
100 string sql = "update " + table + " set "; 100 string sql = "update " + table + " set ";
101 string subsql = ""; 101 string subsql = String.Empty;
102 foreach (DataColumn col in dt.Columns) 102 foreach (DataColumn col in dt.Columns)
103 { 103 {
104 if (subsql.Length > 0) 104 if (subsql.Length > 0)
@@ -126,7 +126,7 @@ namespace OpenSim.Framework.Data.SQLite
126 protected static string defineTable(DataTable dt) 126 protected static string defineTable(DataTable dt)
127 { 127 {
128 string sql = "create table " + dt.TableName + "("; 128 string sql = "create table " + dt.TableName + "(";
129 string subsql = ""; 129 string subsql = String.Empty;
130 foreach (DataColumn col in dt.Columns) 130 foreach (DataColumn col in dt.Columns)
131 { 131 {
132 if (subsql.Length > 0) 132 if (subsql.Length > 0)
diff --git a/OpenSim/Framework/Data.SQLite/SQLiteRegionData.cs b/OpenSim/Framework/Data.SQLite/SQLiteRegionData.cs
index 33b4111..1fd5c47 100644
--- a/OpenSim/Framework/Data.SQLite/SQLiteRegionData.cs
+++ b/OpenSim/Framework/Data.SQLite/SQLiteRegionData.cs
@@ -1368,7 +1368,7 @@ namespace OpenSim.Framework.Data.SQLite
1368 private SqliteCommand createUpdateCommand(string table, string pk, DataTable dt) 1368 private SqliteCommand createUpdateCommand(string table, string pk, DataTable dt)
1369 { 1369 {
1370 string sql = "update " + table + " set "; 1370 string sql = "update " + table + " set ";
1371 string subsql = ""; 1371 string subsql = String.Empty;
1372 foreach (DataColumn col in dt.Columns) 1372 foreach (DataColumn col in dt.Columns)
1373 { 1373 {
1374 if (subsql.Length > 0) 1374 if (subsql.Length > 0)
@@ -1396,7 +1396,7 @@ namespace OpenSim.Framework.Data.SQLite
1396 private string defineTable(DataTable dt) 1396 private string defineTable(DataTable dt)
1397 { 1397 {
1398 string sql = "create table " + dt.TableName + "("; 1398 string sql = "create table " + dt.TableName + "(";
1399 string subsql = ""; 1399 string subsql = String.Empty;
1400 foreach (DataColumn col in dt.Columns) 1400 foreach (DataColumn col in dt.Columns)
1401 { 1401 {
1402 if (subsql.Length > 0) 1402 if (subsql.Length > 0)
diff --git a/OpenSim/Framework/Data.SQLite/SQLiteUserData.cs b/OpenSim/Framework/Data.SQLite/SQLiteUserData.cs
index c4a874f..7647d02 100644
--- a/OpenSim/Framework/Data.SQLite/SQLiteUserData.cs
+++ b/OpenSim/Framework/Data.SQLite/SQLiteUserData.cs
@@ -630,7 +630,7 @@ namespace OpenSim.Framework.Data.SQLite
630 { 630 {
631 if (row[col] == null) 631 if (row[col] == null)
632 { 632 {
633 row[col] = ""; 633 row[col] = String.Empty;
634 } 634 }
635 } 635 }
636 } 636 }
@@ -671,7 +671,7 @@ namespace OpenSim.Framework.Data.SQLite
671 { 671 {
672 if (row[col] == null) 672 if (row[col] == null)
673 { 673 {
674 row[col] = ""; 674 row[col] = String.Empty;
675 } 675 }
676 } 676 }
677 } 677 }
diff --git a/OpenSim/Framework/Data/Properties/AssemblyInfo.cs b/OpenSim/Framework/Data/Properties/AssemblyInfo.cs
index 51050d1..57cf4cf 100644
--- a/OpenSim/Framework/Data/Properties/AssemblyInfo.cs
+++ b/OpenSim/Framework/Data/Properties/AssemblyInfo.cs
@@ -1,3 +1,31 @@
1/*
2* Copyright (c) Contributors, http://opensimulator.org/
3* See CONTRIBUTORS.TXT for a full list of copyright holders.
4*
5* Redistribution and use in source and binary forms, with or without
6* modification, are permitted provided that the following conditions are met:
7* * Redistributions of source code must retain the above copyright
8* notice, this list of conditions and the following disclaimer.
9* * Redistributions in binary form must reproduce the above copyright
10* notice, this list of conditions and the following disclaimer in the
11* documentation and/or other materials provided with the distribution.
12* * Neither the name of the OpenSim Project nor the
13* names of its contributors may be used to endorse or promote products
14* derived from this software without specific prior written permission.
15*
16* THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
17* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19* DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
20* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26*
27*/
28
1using System.Reflection; 29using System.Reflection;
2using System.Runtime.InteropServices; 30using System.Runtime.InteropServices;
3 31
@@ -10,7 +38,7 @@ using System.Runtime.InteropServices;
10[assembly : AssemblyConfiguration("")] 38[assembly : AssemblyConfiguration("")]
11[assembly : AssemblyCompany("")] 39[assembly : AssemblyCompany("")]
12[assembly : AssemblyProduct("OpenSim.Framework.Data")] 40[assembly : AssemblyProduct("OpenSim.Framework.Data")]
13[assembly : AssemblyCopyright("Copyright © 2007")] 41[assembly : AssemblyCopyright("Copyright © OpenSimulator.org Developers 2007-2008")]
14[assembly : AssemblyTrademark("")] 42[assembly : AssemblyTrademark("")]
15[assembly : AssemblyCulture("")] 43[assembly : AssemblyCulture("")]
16 44
diff --git a/OpenSim/Framework/Data/RegionProfileData.cs b/OpenSim/Framework/Data/RegionProfileData.cs
index ec50baa..779e98c 100644
--- a/OpenSim/Framework/Data/RegionProfileData.cs
+++ b/OpenSim/Framework/Data/RegionProfileData.cs
@@ -41,7 +41,7 @@ namespace OpenSim.Framework.Data
41 /// <summary> 41 /// <summary>
42 /// The name of the region 42 /// The name of the region
43 /// </summary> 43 /// </summary>
44 public string regionName = ""; 44 public string regionName = String.Empty;
45 45
46 /// <summary> 46 /// <summary>
47 /// A 64-bit number combining map position into a (mostly) unique ID 47 /// A 64-bit number combining map position into a (mostly) unique ID
@@ -65,10 +65,10 @@ namespace OpenSim.Framework.Data
65 /// Authentication secrets 65 /// Authentication secrets
66 /// </summary> 66 /// </summary>
67 /// <remarks>Not very secure, needs improvement.</remarks> 67 /// <remarks>Not very secure, needs improvement.</remarks>
68 public string regionSendKey = ""; 68 public string regionSendKey = String.Empty;
69 69
70 public string regionRecvKey = ""; 70 public string regionRecvKey = String.Empty;
71 public string regionSecret = ""; 71 public string regionSecret = String.Empty;
72 72
73 /// <summary> 73 /// <summary>
74 /// Whether the region is online 74 /// Whether the region is online
@@ -78,14 +78,14 @@ namespace OpenSim.Framework.Data
78 /// <summary> 78 /// <summary>
79 /// Information about the server that the region is currently hosted on 79 /// Information about the server that the region is currently hosted on
80 /// </summary> 80 /// </summary>
81 public string serverIP = ""; 81 public string serverIP = String.Empty;
82 82
83 public uint serverPort; 83 public uint serverPort;
84 public string serverURI = ""; 84 public string serverURI = String.Empty;
85 85
86 public uint httpPort; 86 public uint httpPort;
87 public uint remotingPort; 87 public uint remotingPort;
88 public string httpServerURI = ""; 88 public string httpServerURI = String.Empty;
89 89
90 /// <summary> 90 /// <summary>
91 /// Set of optional overrides. Can be used to create non-eulicidean spaces. 91 /// Set of optional overrides. Can be used to create non-eulicidean spaces.
@@ -100,23 +100,23 @@ namespace OpenSim.Framework.Data
100 /// Optional: URI Location of the region database 100 /// Optional: URI Location of the region database
101 /// </summary> 101 /// </summary>
102 /// <remarks>Used for floating sim pools where the region data is not nessecarily coupled to a specific server</remarks> 102 /// <remarks>Used for floating sim pools where the region data is not nessecarily coupled to a specific server</remarks>
103 public string regionDataURI = ""; 103 public string regionDataURI = String.Empty;
104 104
105 /// <summary> 105 /// <summary>
106 /// Region Asset Details 106 /// Region Asset Details
107 /// </summary> 107 /// </summary>
108 public string regionAssetURI = ""; 108 public string regionAssetURI = String.Empty;
109 109
110 public string regionAssetSendKey = ""; 110 public string regionAssetSendKey = String.Empty;
111 public string regionAssetRecvKey = ""; 111 public string regionAssetRecvKey = String.Empty;
112 112
113 /// <summary> 113 /// <summary>
114 /// Region Userserver Details 114 /// Region Userserver Details
115 /// </summary> 115 /// </summary>
116 public string regionUserURI = ""; 116 public string regionUserURI = String.Empty;
117 117
118 public string regionUserSendKey = ""; 118 public string regionUserSendKey = String.Empty;
119 public string regionUserRecvKey = ""; 119 public string regionUserRecvKey = String.Empty;
120 120
121 /// <summary> 121 /// <summary>
122 /// Region Map Texture Asset 122 /// Region Map Texture Asset
diff --git a/OpenSim/Framework/Data/ReservationData.cs b/OpenSim/Framework/Data/ReservationData.cs
index 285f9ca..187ff32 100644
--- a/OpenSim/Framework/Data/ReservationData.cs
+++ b/OpenSim/Framework/Data/ReservationData.cs
@@ -37,11 +37,11 @@ namespace OpenSim.Framework.Data
37 public int reservationMaxX = 65536; 37 public int reservationMaxX = 65536;
38 public int reservationMaxY = 65536; 38 public int reservationMaxY = 65536;
39 39
40 public string reservationName = ""; 40 public string reservationName = System.String.Empty;
41 public string reservationCompany = ""; 41 public string reservationCompany = System.String.Empty;
42 public bool status = true; 42 public bool status = true;
43 43
44 public string gridSendKey = ""; 44 public string gridSendKey = System.String.Empty;
45 public string gridRecvKey = ""; 45 public string gridRecvKey = System.String.Empty;
46 } 46 }
47} \ No newline at end of file 47} \ No newline at end of file