diff options
author | OpenSim Master | 2010-01-18 15:50:33 -0800 |
---|---|---|
committer | John Hurliman | 2010-02-05 17:45:31 -0800 |
commit | e982397cde06f95af7388d20ebe4c6c5ee238b17 (patch) | |
tree | 29e5d180ba5a58254919e79f88a2959903184b6b /OpenSim/Data/MySQL | |
parent | Finally cutting the gordian knot. Friends needs to be both a module and a (diff) | |
download | opensim-SC_OLD-e982397cde06f95af7388d20ebe4c6c5ee238b17.zip opensim-SC_OLD-e982397cde06f95af7388d20ebe4c6c5ee238b17.tar.gz opensim-SC_OLD-e982397cde06f95af7388d20ebe4c6c5ee238b17.tar.bz2 opensim-SC_OLD-e982397cde06f95af7388d20ebe4c6c5ee238b17.tar.xz |
* Fixed the Cable Beach inventory server to save the CreatorID as well as properly handling null item names and descriptions * Fixed the MySQL reader to safely handle null values in string columns that can be null
Diffstat (limited to 'OpenSim/Data/MySQL')
-rw-r--r-- | OpenSim/Data/MySQL/MySQLInventoryData.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Data/MySQL/MySQLInventoryData.cs b/OpenSim/Data/MySQL/MySQLInventoryData.cs index f566fde..4b71e39 100644 --- a/OpenSim/Data/MySQL/MySQLInventoryData.cs +++ b/OpenSim/Data/MySQL/MySQLInventoryData.cs | |||
@@ -345,8 +345,8 @@ namespace OpenSim.Data.MySQL | |||
345 | item.AssetID = new UUID((string) reader["assetID"]); | 345 | item.AssetID = new UUID((string) reader["assetID"]); |
346 | item.AssetType = (int) reader["assetType"]; | 346 | item.AssetType = (int) reader["assetType"]; |
347 | item.Folder = new UUID((string) reader["parentFolderID"]); | 347 | item.Folder = new UUID((string) reader["parentFolderID"]); |
348 | item.Name = (string) reader["inventoryName"]; | 348 | item.Name = (string)(reader["inventoryName"] ?? String.Empty); |
349 | item.Description = (string) reader["inventoryDescription"]; | 349 | item.Description = (string)(reader["inventoryDescription"] ?? String.Empty); |
350 | item.NextPermissions = (uint) reader["inventoryNextPermissions"]; | 350 | item.NextPermissions = (uint) reader["inventoryNextPermissions"]; |
351 | item.CurrentPermissions = (uint) reader["inventoryCurrentPermissions"]; | 351 | item.CurrentPermissions = (uint) reader["inventoryCurrentPermissions"]; |
352 | item.InvType = (int) reader["invType"]; | 352 | item.InvType = (int) reader["invType"]; |