File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ] ;
You can’t perform that action at this time.
0 commit comments