Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Diederen <dd@crosstwine.com>2015-01-16 16:45:50 +0300
committerDamien Diederen <dd@crosstwine.com>2015-05-05 22:20:28 +0300
commit77ef86e529eea9e20ae3219c9738e29a440f275b (patch)
tree3b9f105b6e286c68819538a69c39ce1c4e110a78 /mcs/class/Mono.Data.Tds
parentc6e96ff141064abafa0265df5787ba6d247191ad (diff)
[Mono.Data.Tds] Register TdsColumnType.Variant as a "blob" type
On the wire, Variants are preceded by uint-encoded max length and actual length (not bytes like smaller types). Without this patch, SQL Server 2008 SP2 rejects our requests as truncated.
Diffstat (limited to 'mcs/class/Mono.Data.Tds')
-rw-r--r--mcs/class/Mono.Data.Tds/Mono.Data.Tds.Protocol/Tds.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/mcs/class/Mono.Data.Tds/Mono.Data.Tds.Protocol/Tds.cs b/mcs/class/Mono.Data.Tds/Mono.Data.Tds.Protocol/Tds.cs
index 580c8dd85fa..0cee960df52 100644
--- a/mcs/class/Mono.Data.Tds/Mono.Data.Tds.Protocol/Tds.cs
+++ b/mcs/class/Mono.Data.Tds/Mono.Data.Tds.Protocol/Tds.cs
@@ -1291,7 +1291,7 @@ namespace Mono.Data.Tds.Protocol
internal bool IsBlobType (TdsColumnType columnType)
{
- return (columnType == TdsColumnType.Text || columnType == TdsColumnType.Image || columnType == TdsColumnType.NText);
+ return (columnType == TdsColumnType.Text || columnType == TdsColumnType.Image || columnType == TdsColumnType.NText || columnType == TdsColumnType.Variant);
}
internal bool IsLargeType (TdsColumnType columnType)