From fe4e2057722e0614810c1389d936371936ab4caf Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 18 Oct 2025 20:36:32 +0000 Subject: [PATCH] Add clarifying comment about datetime parameter usage Co-authored-by: Kvarkas <3611964+Kvarkas@users.noreply.github.com> --- mRemoteNG/Config/Connections/SqlConnectionsSaver.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mRemoteNG/Config/Connections/SqlConnectionsSaver.cs b/mRemoteNG/Config/Connections/SqlConnectionsSaver.cs index 955708f5a..d1c3ec0cb 100644 --- a/mRemoteNG/Config/Connections/SqlConnectionsSaver.cs +++ b/mRemoteNG/Config/Connections/SqlConnectionsSaver.cs @@ -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);