Bug 22388 - sql_variant issue
Summary: sql_variant issue
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
Depends on:
Reported: 2014-08-27 02:10 UTC by Sergey
Modified: 2018-02-22 22:36 UTC (History)
1 user (show)

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


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
Comment 1 Marek Safar 2018-02-22 22:36:08 UTC
Mono 5.10 has significantly improved System.Data implementation which should resolve this issue. If you can still reproduce it please reopen the issue.

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