Mantis #7848: something wrong with a data field in Groups V2

LSLKeyTest
Diva Canto 2016-06-17 12:40:04 -07:00
parent e0a82a82de
commit 8a070f16dd
1 changed files with 1 additions and 2 deletions

View File

@ -431,8 +431,7 @@ namespace OpenSim.Data.MySQL
using (MySqlCommand cmd = new MySqlCommand())
{
cmd.CommandText = String.Format("delete from {0} where TMStamp < ?tstamp", m_Realm);
cmd.Parameters.AddWithValue("?tstamp", now - 14 * 24 * 60 * 60); // > 2 weeks old
cmd.CommandText = String.Format("delete from {0} where TMStamp < NOW() - INTERVAL 2 WEEK", m_Realm);
ExecuteNonQuery(cmd);
}