Add clarifying comment about datetime parameter usage

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

View File

@@ -172,6 +172,8 @@ 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
lastUpdateParam.Value = MiscTools.DBTimeStampNow();
dbQuery.Parameters.Add(lastUpdateParam);