diff options
author | Melanie Thielker | 2017-01-05 19:07:37 +0000 |
---|---|---|
committer | Melanie Thielker | 2017-01-05 19:07:37 +0000 |
commit | b16abc8166c29585cb76cc55c3bdd76e5833cb4f (patch) | |
tree | 6a34f465a74b7a3a6dc00a3d7aa8dcc25ac3e3a5 /OpenSim/Data/PGSQL/PGSQLAuthenticationData.cs | |
parent | Make it possible to disable the bakes module in the way it is described in co... (diff) | |
download | opensim-SC_OLD-b16abc8166c29585cb76cc55c3bdd76e5833cb4f.zip opensim-SC_OLD-b16abc8166c29585cb76cc55c3bdd76e5833cb4f.tar.gz opensim-SC_OLD-b16abc8166c29585cb76cc55c3bdd76e5833cb4f.tar.bz2 opensim-SC_OLD-b16abc8166c29585cb76cc55c3bdd76e5833cb4f.tar.xz |
Massive tab and trailing space cleanup
Diffstat (limited to 'OpenSim/Data/PGSQL/PGSQLAuthenticationData.cs')
-rw-r--r-- | OpenSim/Data/PGSQL/PGSQLAuthenticationData.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Data/PGSQL/PGSQLAuthenticationData.cs b/OpenSim/Data/PGSQL/PGSQLAuthenticationData.cs index d174112..8f83309 100644 --- a/OpenSim/Data/PGSQL/PGSQLAuthenticationData.cs +++ b/OpenSim/Data/PGSQL/PGSQLAuthenticationData.cs | |||
@@ -145,7 +145,7 @@ namespace OpenSim.Data.PGSQL | |||
145 | updateBuilder.AppendFormat("\"{0}\" = :{0}",field); | 145 | updateBuilder.AppendFormat("\"{0}\" = :{0}",field); |
146 | 146 | ||
147 | first = false; | 147 | first = false; |
148 | 148 | ||
149 | cmd.Parameters.Add(m_database.CreateParameter("" + field, data.Data[field])); | 149 | cmd.Parameters.Add(m_database.CreateParameter("" + field, data.Data[field])); |
150 | } | 150 | } |
151 | 151 | ||
@@ -154,7 +154,7 @@ namespace OpenSim.Data.PGSQL | |||
154 | cmd.CommandText = updateBuilder.ToString(); | 154 | cmd.CommandText = updateBuilder.ToString(); |
155 | cmd.Connection = conn; | 155 | cmd.Connection = conn; |
156 | cmd.Parameters.Add(m_database.CreateParameter("principalID", data.PrincipalID)); | 156 | cmd.Parameters.Add(m_database.CreateParameter("principalID", data.PrincipalID)); |
157 | 157 | ||
158 | conn.Open(); | 158 | conn.Open(); |
159 | if (cmd.ExecuteNonQuery() < 1) | 159 | if (cmd.ExecuteNonQuery() < 1) |
160 | { | 160 | { |
@@ -195,7 +195,7 @@ namespace OpenSim.Data.PGSQL | |||
195 | { | 195 | { |
196 | if (System.Environment.TickCount - m_LastExpire > 30000) | 196 | if (System.Environment.TickCount - m_LastExpire > 30000) |
197 | DoExpire(); | 197 | DoExpire(); |
198 | 198 | ||
199 | string sql = "insert into tokens (uuid, token, validity) values (:principalID, :token, :lifetime)"; | 199 | string sql = "insert into tokens (uuid, token, validity) values (:principalID, :token, :lifetime)"; |
200 | using (NpgsqlConnection conn = new NpgsqlConnection(m_ConnectionString)) | 200 | using (NpgsqlConnection conn = new NpgsqlConnection(m_ConnectionString)) |
201 | using (NpgsqlCommand cmd = new NpgsqlCommand(sql, conn)) | 201 | using (NpgsqlCommand cmd = new NpgsqlCommand(sql, conn)) |