diff options
Diffstat (limited to 'OpenSim/Data/MSSQL')
-rw-r--r-- | OpenSim/Data/MSSQL/MSSQLGridData.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenSim/Data/MSSQL/MSSQLGridData.cs b/OpenSim/Data/MSSQL/MSSQLGridData.cs index e2b0dd6..1ed412b 100644 --- a/OpenSim/Data/MSSQL/MSSQLGridData.cs +++ b/OpenSim/Data/MSSQL/MSSQLGridData.cs | |||
@@ -149,6 +149,10 @@ namespace OpenSim.Data.MSSQL | |||
149 | IDataReader reader = null; | 149 | IDataReader reader = null; |
150 | try | 150 | try |
151 | { | 151 | { |
152 | if (database.getConnection().State == ConnectionState.Closed) | ||
153 | { | ||
154 | database.Reconnect(); | ||
155 | } | ||
152 | Dictionary<string, string> param = new Dictionary<string, string>(); | 156 | Dictionary<string, string> param = new Dictionary<string, string>(); |
153 | param["handle"] = handle.ToString(); | 157 | param["handle"] = handle.ToString(); |
154 | IDbCommand result = database.Query("SELECT * FROM " + m_regionsTableName + " WHERE regionHandle = @handle", param); | 158 | IDbCommand result = database.Query("SELECT * FROM " + m_regionsTableName + " WHERE regionHandle = @handle", param); |