Skip to content

Commit

Permalink
修复sqlserver时间格式化datetime2逻辑判断错误
Browse files Browse the repository at this point in the history
  • Loading branch information
ligengrong committed Jun 4, 2024
1 parent c3c406f commit 211928b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion XCode/DataAccessLayer/Database/SqlServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ public override String FormatDateTime(IDataColumn column, DateTime dateTime)
else
return $"{{ts'{dateTime:yyyy-MM-dd HH:mm:ss}'}}";
}
else if (column != null && !column.RawType.EqualIgnoreCase("datetime2"))
else if (column != null && column.RawType.EqualIgnoreCase("datetime2"))
return $"{{ts'{dateTime:yyyy-MM-dd HH:mm:ss.fffffff}'}}";
else
return $"{{ts'{dateTime:yyyy-MM-dd HH:mm:ss.fff}'}}";
Expand Down

0 comments on commit 211928b

Please sign in to comment.