aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/MSSQL/MSSQLUserData.cs
diff options
context:
space:
mode:
authorMelanie2010-05-31 17:57:48 +0100
committerMelanie2010-05-31 17:57:48 +0100
commit0526a91206a64cb43be29d61d472a98f5a031b74 (patch)
tree061ab41ebe056e48794de5fd296c8af576471c1e /OpenSim/Data/MSSQL/MSSQLUserData.cs
parentFix casting in llParcelMediaCommandList so that it actually, you know, works (diff)
parentFix a nullref in EventManager caused by RegionReady not setting the scene (diff)
downloadopensim-SC_OLD-0526a91206a64cb43be29d61d472a98f5a031b74.zip
opensim-SC_OLD-0526a91206a64cb43be29d61d472a98f5a031b74.tar.gz
opensim-SC_OLD-0526a91206a64cb43be29d61d472a98f5a031b74.tar.bz2
opensim-SC_OLD-0526a91206a64cb43be29d61d472a98f5a031b74.tar.xz
Merge branch '0.6.9-post-fixes' into careminster
Diffstat (limited to 'OpenSim/Data/MSSQL/MSSQLUserData.cs')
-rw-r--r--OpenSim/Data/MSSQL/MSSQLUserData.cs17
1 files changed, 15 insertions, 2 deletions
diff --git a/OpenSim/Data/MSSQL/MSSQLUserData.cs b/OpenSim/Data/MSSQL/MSSQLUserData.cs
index 3ef1053..7fe8ed0 100644
--- a/OpenSim/Data/MSSQL/MSSQLUserData.cs
+++ b/OpenSim/Data/MSSQL/MSSQLUserData.cs
@@ -582,8 +582,21 @@ namespace OpenSim.Data.MSSQL
582 /// <param name="appearance">the appearence</param> 582 /// <param name="appearance">the appearence</param>
583 override public void UpdateUserAppearance(UUID user, AvatarAppearance appearance) 583 override public void UpdateUserAppearance(UUID user, AvatarAppearance appearance)
584 { 584 {
585 string sql = @"DELETE FROM avatarappearance WHERE owner=@owner; 585 string sql = @"DELETE FROM avatarappearance WHERE owner=@owner";
586 INSERT INTO avatarappearance 586 using (AutoClosingSqlCommand cmd = database.Query(sql))
587 {
588 cmd.Parameters.Add(database.CreateParameter("@owner", appearance.Owner));
589 try
590 {
591 cmd.ExecuteNonQuery();
592 }
593 catch (Exception e)
594 {
595 m_log.ErrorFormat("[USER DB] Error deleting old user appearance, error: {0}", e.Message);
596 }
597 }
598
599 sql=@"INSERT INTO avatarappearance
587 (owner, serial, visual_params, texture, avatar_height, 600 (owner, serial, visual_params, texture, avatar_height,
588 body_item, body_asset, skin_item, skin_asset, hair_item, 601 body_item, body_asset, skin_item, skin_asset, hair_item,
589 hair_asset, eyes_item, eyes_asset, shirt_item, shirt_asset, 602 hair_asset, eyes_item, eyes_asset, shirt_item, shirt_asset,