diff options
author | Jeff Ames | 2008-05-16 01:22:11 +0000 |
---|---|---|
committer | Jeff Ames | 2008-05-16 01:22:11 +0000 |
commit | 65c5efe43b68700bad94076d4cd421160203c5de (patch) | |
tree | 589b56649ed02f4942671fd6e51c6dc43f682e0d /OpenSim/Data/MSSQL/MSSQLInventoryData.cs | |
parent | Thank you very much, mjm for : (diff) | |
download | opensim-SC-65c5efe43b68700bad94076d4cd421160203c5de.zip opensim-SC-65c5efe43b68700bad94076d4cd421160203c5de.tar.gz opensim-SC-65c5efe43b68700bad94076d4cd421160203c5de.tar.bz2 opensim-SC-65c5efe43b68700bad94076d4cd421160203c5de.tar.xz |
Formatting cleanup.
Diffstat (limited to 'OpenSim/Data/MSSQL/MSSQLInventoryData.cs')
-rw-r--r-- | OpenSim/Data/MSSQL/MSSQLInventoryData.cs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/OpenSim/Data/MSSQL/MSSQLInventoryData.cs b/OpenSim/Data/MSSQL/MSSQLInventoryData.cs index 611a559..69d45f7 100644 --- a/OpenSim/Data/MSSQL/MSSQLInventoryData.cs +++ b/OpenSim/Data/MSSQL/MSSQLInventoryData.cs | |||
@@ -80,7 +80,7 @@ namespace OpenSim.Data.MSSQL | |||
80 | if (tableName == null) | 80 | if (tableName == null) |
81 | { | 81 | { |
82 | database.ExecuteResourceSql("CreateFoldersTable.sql"); | 82 | database.ExecuteResourceSql("CreateFoldersTable.sql"); |
83 | //database.ExecuteResourceSql("UpgradeFoldersTableToVersion2.sql"); | 83 | //database.ExecuteResourceSql("UpgradeFoldersTableToVersion2.sql"); |
84 | return; | 84 | return; |
85 | } | 85 | } |
86 | } | 86 | } |
@@ -236,9 +236,9 @@ namespace OpenSim.Data.MSSQL | |||
236 | 236 | ||
237 | // There should only ever be one root folder for a user. However, if there's more | 237 | // There should only ever be one root folder for a user. However, if there's more |
238 | // than one we'll simply use the first one rather than failing. It would be even | 238 | // than one we'll simply use the first one rather than failing. It would be even |
239 | // nicer to print some message to this effect, but this feels like it's too low a | 239 | // nicer to print some message to this effect, but this feels like it's too low a |
240 | // to put such a message out, and it's too minor right now to spare the time to | 240 | // to put such a message out, and it's too minor right now to spare the time to |
241 | // suitably refactor. | 241 | // suitably refactor. |
242 | if (items.Count > 0) | 242 | if (items.Count > 0) |
243 | { | 243 | { |
244 | rootFolder = items[0]; | 244 | rootFolder = items[0]; |
@@ -326,7 +326,7 @@ namespace OpenSim.Data.MSSQL | |||
326 | item.GroupID = new LLUUID(reader["groupID"].ToString()); | 326 | item.GroupID = new LLUUID(reader["groupID"].ToString()); |
327 | item.GroupOwned = Convert.ToBoolean(reader["groupOwned"]); | 327 | item.GroupOwned = Convert.ToBoolean(reader["groupOwned"]); |
328 | item.Flags = (uint) reader["flags"]; | 328 | item.Flags = (uint) reader["flags"]; |
329 | 329 | ||
330 | return item; | 330 | return item; |
331 | } | 331 | } |
332 | catch (SqlException e) | 332 | catch (SqlException e) |
@@ -455,7 +455,7 @@ namespace OpenSim.Data.MSSQL | |||
455 | + ", @inventoryNextPermissions, @inventoryCurrentPermissions, @invType, @creatorID" | 455 | + ", @inventoryNextPermissions, @inventoryCurrentPermissions, @invType, @creatorID" |
456 | + ", @inventoryBasePermissions, @inventoryEveryOnePermissions, @salePrice, @saleType" | 456 | + ", @inventoryBasePermissions, @inventoryEveryOnePermissions, @salePrice, @saleType" |
457 | + ", @creationDate, @groupID, @groupOwned, @flags);"; | 457 | + ", @creationDate, @groupID, @groupOwned, @flags);"; |
458 | 458 | ||
459 | try | 459 | try |
460 | { | 460 | { |
461 | Dictionary<string, string> param = new Dictionary<string, string>(); | 461 | Dictionary<string, string> param = new Dictionary<string, string>(); |
@@ -472,7 +472,7 @@ namespace OpenSim.Data.MSSQL | |||
472 | param["creatorID"] = item.Creator.ToString(); | 472 | param["creatorID"] = item.Creator.ToString(); |
473 | param["inventoryBasePermissions"] = Convert.ToString(item.BasePermissions); | 473 | param["inventoryBasePermissions"] = Convert.ToString(item.BasePermissions); |
474 | param["inventoryEveryOnePermissions"] = Convert.ToString(item.EveryOnePermissions); | 474 | param["inventoryEveryOnePermissions"] = Convert.ToString(item.EveryOnePermissions); |
475 | 475 | ||
476 | param["salePrice"] = Convert.ToString(item.SalePrice); | 476 | param["salePrice"] = Convert.ToString(item.SalePrice); |
477 | param["saleType"] = Convert.ToString(item.SaleType); | 477 | param["saleType"] = Convert.ToString(item.SaleType); |
478 | param["creationDate"] = Convert.ToString(item.CreationDate); | 478 | param["creationDate"] = Convert.ToString(item.CreationDate); |
@@ -550,7 +550,7 @@ namespace OpenSim.Data.MSSQL | |||
550 | } | 550 | } |
551 | 551 | ||
552 | /// <summary> | 552 | /// <summary> |
553 | /// | 553 | /// |
554 | /// </summary> | 554 | /// </summary> |
555 | /// <param name="item"></param> | 555 | /// <param name="item"></param> |
556 | public void deleteInventoryItem(LLUUID itemID) | 556 | public void deleteInventoryItem(LLUUID itemID) |
@@ -667,7 +667,7 @@ namespace OpenSim.Data.MSSQL | |||
667 | } | 667 | } |
668 | 668 | ||
669 | /// <summary> | 669 | /// <summary> |
670 | /// Append a list of all the child folders of a parent folder | 670 | /// Append a list of all the child folders of a parent folder |
671 | /// </summary> | 671 | /// </summary> |
672 | /// <param name="folders">list where folders will be appended</param> | 672 | /// <param name="folders">list where folders will be appended</param> |
673 | /// <param name="parentID">ID of parent</param> | 673 | /// <param name="parentID">ID of parent</param> |