aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorArthur Valadares2009-08-21 17:48:45 -0300
committerArthur Valadares2009-08-21 17:48:45 -0300
commit604ef5ba799c4ac6af4a965ede726faf42916ad6 (patch)
tree011376e153267877732b86396a78ef98d353897f
parentAdd -xmlfile= option to UGM, to let the files be outside bin if desired (diff)
downloadopensim-SC-604ef5ba799c4ac6af4a965ede726faf42916ad6.zip
opensim-SC-604ef5ba799c4ac6af4a965ede726faf42916ad6.tar.gz
opensim-SC-604ef5ba799c4ac6af4a965ede726faf42916ad6.tar.bz2
opensim-SC-604ef5ba799c4ac6af4a965ede726faf42916ad6.tar.xz
Fix issue where conversion of temporary boolean variable fails on MySQL
-rw-r--r--OpenSim/Data/MySQL/MySQLAssetData.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Data/MySQL/MySQLAssetData.cs b/OpenSim/Data/MySQL/MySQLAssetData.cs
index 1b4377a..66c34fe 100644
--- a/OpenSim/Data/MySQL/MySQLAssetData.cs
+++ b/OpenSim/Data/MySQL/MySQLAssetData.cs
@@ -168,7 +168,7 @@ namespace OpenSim.Data.MySQL
168 } 168 }
169 asset.Name = (string) dbReader["name"]; 169 asset.Name = (string) dbReader["name"];
170 asset.Type = (sbyte) dbReader["assetType"]; 170 asset.Type = (sbyte) dbReader["assetType"];
171 asset.Temporary = (bool)dbReader["temporary"]; 171 asset.Temporary = Convert.ToBoolean(dbReader["temporary"]);
172 } 172 }
173 dbReader.Close(); 173 dbReader.Close();
174 cmd.Dispose(); 174 cmd.Dispose();
@@ -359,7 +359,7 @@ namespace OpenSim.Data.MySQL
359 metadata.Name = (string) dbReader["name"]; 359 metadata.Name = (string) dbReader["name"];
360 metadata.Description = (string) dbReader["description"]; 360 metadata.Description = (string) dbReader["description"];
361 metadata.Type = (sbyte) dbReader["assetType"]; 361 metadata.Type = (sbyte) dbReader["assetType"];
362 metadata.Temporary = (bool) dbReader["temporary"]; // Not sure if this is correct. 362 metadata.Temporary = Convert.ToBoolean(dbReader["temporary"]); // Not sure if this is correct.
363 metadata.FullID = new UUID((string) dbReader["id"]); 363 metadata.FullID = new UUID((string) dbReader["id"]);
364 364
365 // Current SHA1s are not stored/computed. 365 // Current SHA1s are not stored/computed.