Bug 22388 - sql_variant issue
Summary: sql_variant issue
Status: NEW
Alias: None
Product: Class Libraries
Classification: Mono
Component: System.Data (show other bugs)
Version: 3.2.x
Hardware: PC Linux
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2014-08-27 02:10 UTC by Sergey
Modified: 2017-09-01 09:29 UTC (History)
1 user (show)

See Also:
Tags:
Is this bug a regression?: ---
Last known good build:


Attachments

Description Sergey 2014-08-27 02:10:49 UTC
i'm try to read data from database but have this exeption:

System.IO.IOException: Read failure ---> System.Net.Sockets.SocketException: Operation timed out.
at System.Net.Sockets.Socket.Receive (System.Byte[] buffer, Int32 offset, Int32 size, SocketFlags flags) [0x00000] in :0
at System.Net.Sockets.NetworkStream.Read (System.Byte[] buffer, Int32 offset, Int32 size) [0x00000] in :0
--- End of inner exception stack trace ---
at System.Net.Sockets.NetworkStream.Read (System.Byte[] buffer, Int32 offset, Int32 size) [0x00000] in :0
at Mono.Data.Tds.Protocol.TdsComm.Read (System.Byte[] buffer, Int32 offset, Int32 count) [0x00000] in :0 }

so, when i'm look to database table's field type i find that type of this field is sql_variant

then i'm try to cast type of this field to for example "string" and have no exception

Note You need to log in before you can comment on or make changes to this bug.