Skip to content

Commit e359859

Browse files
committed
TDengine TIMESTAMP特殊处理
1 parent dbe0b01 commit e359859

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Providers/FreeSql.Provider.TDengine/TDengineProvider.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,7 @@ public TDengineProvider(string masterConnectionString, string[] slaveConnectionS
5353
try
5454
{
5555
var value = e.DataReader.GetValue(e.Index);
56-
if (value != null)
57-
e.Value = e.DataReader.GetDateTime(e.Index);
58-
else
59-
e.Value = null;
56+
e.Value = value != null ? e.DataReader.GetDateTime(e.Index) : null;
6057

6158
return;
6259
}

0 commit comments

Comments
 (0)