Clarify comment about database-specific datetime types

Co-authored-by: Kvarkas <3611964+Kvarkas@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-10-18 20:38:22 +00:00
parent fe4e205772
commit 2d3830b747

View File

@@ -173,7 +173,7 @@ namespace mRemoteNG.Config.Connections
DbParameter lastUpdateParam = dbQuery.CreateParameter();
lastUpdateParam.ParameterName = "@LastUpdate";
// Use DBTimeStampNow() instead of DBDate() - the column is datetime type, not string
// DBTimeStampNow() returns the appropriate .NET type (DateTime or MySqlDateTime) for parameterized queries
// DBTimeStampNow() returns the database-specific .NET type: DateTime for MSSQL, MySqlDateTime for MySQL
lastUpdateParam.Value = MiscTools.DBTimeStampNow();
dbQuery.Parameters.Add(lastUpdateParam);