Skip to content

Commit 59ef0b3

Browse files
committed
В рамках #38
1 parent a4164d1 commit 59ef0b3

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

oscript-sql/QueryResult.cs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,6 @@ public ValueTable Unload()
7171
row.Set(ColIdx, ValueFactory.Create());
7272
continue;
7373
}
74-
75-
76-
//Console.WriteLine("queryresult-col-type:" + _reader.GetName(ColIdx) + " = " + record.GetFieldType(ColIdx).ToString() + "::" + record.GetDataTypeName(ColIdx));
77-
78-
7974

8075
if (record.GetFieldType(ColIdx) == typeof(SByte))
8176
{
@@ -119,6 +114,10 @@ public ValueTable Unload()
119114
{
120115
row.Set(ColIdx, ValueFactory.Create(record.GetDateTime(ColIdx)));
121116
}
117+
else if (record.GetFieldType(ColIdx).ToString() == "System.TimeSpan")
118+
{
119+
row.Set(ColIdx, ValueFactory.Create(new DateTime() + (TimeSpan)record[ColIdx]));
120+
}
122121
else if (record.GetFieldType(ColIdx).ToString() == "System.Byte[]")
123122
{
124123
var data = (byte[])record[ColIdx];

0 commit comments

Comments
 (0)