From 2d3830b74762d42fc659403eb768858ab59330d4 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 18 Oct 2025 20:38:22 +0000 Subject: [PATCH] Clarify comment about database-specific datetime types Co-authored-by: Kvarkas <3611964+Kvarkas@users.noreply.github.com> --- mRemoteNG/Config/Connections/SqlConnectionsSaver.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mRemoteNG/Config/Connections/SqlConnectionsSaver.cs b/mRemoteNG/Config/Connections/SqlConnectionsSaver.cs index d1c3ec0c..c10bdcff 100644 --- a/mRemoteNG/Config/Connections/SqlConnectionsSaver.cs +++ b/mRemoteNG/Config/Connections/SqlConnectionsSaver.cs @@ -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);