diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Data/MySQL/MySQLGenericTableHandler.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenSim/Data/MySQL/MySQLGenericTableHandler.cs b/OpenSim/Data/MySQL/MySQLGenericTableHandler.cs index 1a97fee..2269d20 100644 --- a/OpenSim/Data/MySQL/MySQLGenericTableHandler.cs +++ b/OpenSim/Data/MySQL/MySQLGenericTableHandler.cs | |||
@@ -153,6 +153,11 @@ namespace OpenSim.Data.MySQL | |||
153 | UUID.TryParse(reader[name].ToString(), out uuid); | 153 | UUID.TryParse(reader[name].ToString(), out uuid); |
154 | m_Fields[name].SetValue(row, uuid); | 154 | m_Fields[name].SetValue(row, uuid); |
155 | } | 155 | } |
156 | else if (m_Fields[name].GetValue(row) is int) | ||
157 | { | ||
158 | int v = Convert.ToInt32(reader[name]); | ||
159 | m_Fields[name].SetValue(row, v); | ||
160 | } | ||
156 | else | 161 | else |
157 | { | 162 | { |
158 | m_Fields[name].SetValue(row, reader[name]); | 163 | m_Fields[name].SetValue(row, reader[name]); |