diff options
author | Diva Canto | 2010-04-16 18:04:20 -0700 |
---|---|---|
committer | Diva Canto | 2010-04-16 18:04:20 -0700 |
commit | 4e1cbd1bf3f2a7d4e3dd8861e196820f35cddec9 (patch) | |
tree | f103e1b42f68b08d2af19844f2d732007195c361 /OpenSim/Data/SQLite/SQLiteAuthenticationData.cs | |
parent | Bug fix: UserAccounts in SQLite was missing the primary key constraint. (diff) | |
download | opensim-SC_OLD-4e1cbd1bf3f2a7d4e3dd8861e196820f35cddec9.zip opensim-SC_OLD-4e1cbd1bf3f2a7d4e3dd8861e196820f35cddec9.tar.gz opensim-SC_OLD-4e1cbd1bf3f2a7d4e3dd8861e196820f35cddec9.tar.bz2 opensim-SC_OLD-4e1cbd1bf3f2a7d4e3dd8861e196820f35cddec9.tar.xz |
One more bug fix in sqlite sql statements.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Data/SQLite/SQLiteAuthenticationData.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Data/SQLite/SQLiteAuthenticationData.cs b/OpenSim/Data/SQLite/SQLiteAuthenticationData.cs index 2c28375..aa10734 100644 --- a/OpenSim/Data/SQLite/SQLiteAuthenticationData.cs +++ b/OpenSim/Data/SQLite/SQLiteAuthenticationData.cs | |||
@@ -235,7 +235,7 @@ namespace OpenSim.Data.SQLite | |||
235 | if (System.Environment.TickCount - m_LastExpire > 30000) | 235 | if (System.Environment.TickCount - m_LastExpire > 30000) |
236 | DoExpire(); | 236 | DoExpire(); |
237 | 237 | ||
238 | SqliteCommand cmd = new SqliteCommand("update tokens set validity = datetime('now, 'localtime', '+" + lifetime.ToString() + | 238 | SqliteCommand cmd = new SqliteCommand("update tokens set validity = datetime('now', 'localtime', '+" + lifetime.ToString() + |
239 | " minutes') where UUID = '" + principalID.ToString() + "' and token = '" + token + "' and validity > datetime('now', 'localtime')"); | 239 | " minutes') where UUID = '" + principalID.ToString() + "' and token = '" + token + "' and validity > datetime('now', 'localtime')"); |
240 | 240 | ||
241 | if (ExecuteNonQuery(cmd, m_Connection) > 0) | 241 | if (ExecuteNonQuery(cmd, m_Connection) > 0) |