Skip to content

Commit

Permalink
Fix for exception when reading classifieds in the profile module. Cat…
Browse files Browse the repository at this point in the history
…egory is a varchar string in the database but was treated as an int. Changed the code to call System.Convert.ToInt32 which will handle an object and convert correctly regardless of the table type. This way the same code should work on core or on a database where the database Category has been migrated to an int. Bumped version to 8619
  • Loading branch information
mdickson committed Aug 7, 2023
1 parent 488a7f4 commit e3f6b40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion OpenSim/Data/MySQL/MySQLUserProfilesData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ public bool GetClassifiedInfo(ref UserClassifiedAdd ad, ref string result)
ad.ExpirationDate = Convert.ToInt32(reader["expirationdate"]);
ad.ParentEstate = Convert.ToInt32(reader["parentestate"]);
ad.Flags = (byte)reader.GetUInt32("classifiedflags");
ad.Category = reader.GetInt32("category");
ad.Category = Convert.ToInt32(reader["category"]);
ad.Price = reader.GetInt16("priceforlisting");
ad.Name = reader.GetString("name");
ad.Description = reader.GetString("description");
Expand Down
2 changes: 1 addition & 1 deletion OpenSim/Framework/VersionInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public class VersionInfo
{
public const string VersionNumber = "0.9.2.2";
public const string AssemblyVersionNumber = "0.9.2.2";
public const string Release = "8617";
public const string Release = "8619";

public const Flavour VERSION_FLAVOUR = Flavour.Dev;

Expand Down

0 comments on commit e3f6b40

Please sign in to comment.