mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 22:11:48 +08:00
Add clarifying comment about datetime parameter usage
Co-authored-by: Kvarkas <3611964+Kvarkas@users.noreply.github.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user