[Mono.Data.Tds] Deserialize variant-wrapped fixed-size integers (1-8 bytes)
authorDamien Diederen <dd@crosstwine.com>
Fri, 16 Jan 2015 14:05:51 +0000 (15:05 +0100)
committerDamien Diederen <dd@crosstwine.com>
Tue, 5 May 2015 19:20:49 +0000 (21:20 +0200)
commit3a81bfc27525bcec2fa04340fcd1567347c04ca9
treeaba5c3b4075a445dcdca85263d60811cb2cddd40
parent77ef86e529eea9e20ae3219c9738e29a440f275b
[Mono.Data.Tds] Deserialize variant-wrapped fixed-size integers (1-8 bytes)

Without this, variant output parameters are left unconsumed in the
input stream, and null is returned.

The new code skips the max length uint, and decodes a subset of the
variant types.  What is not recognized is skipped, and we return null
as the previous code used to do.

(Ideally, the subset of GetColumnValue which decodes types which can
be embedded in a variant should be factored out to a different method,
and reused from GetVariantValue.)
mcs/class/Mono.Data.Tds/Mono.Data.Tds.Protocol/Tds.cs