oledb32: Support DBTYPE_NUMERIC in IDataConvert GetConversionSize.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com> Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
c3b108e54b
commit
a744cc81df
|
@ -139,6 +139,8 @@ static int get_length(DBTYPE type)
|
||||||
return sizeof(FILETIME);
|
return sizeof(FILETIME);
|
||||||
case DBTYPE_GUID:
|
case DBTYPE_GUID:
|
||||||
return sizeof(GUID);
|
return sizeof(GUID);
|
||||||
|
case DBTYPE_NUMERIC:
|
||||||
|
return sizeof(DB_NUMERIC);
|
||||||
case DBTYPE_BYTES:
|
case DBTYPE_BYTES:
|
||||||
case DBTYPE_WSTR:
|
case DBTYPE_WSTR:
|
||||||
case DBTYPE_STR:
|
case DBTYPE_STR:
|
||||||
|
|
|
@ -2857,6 +2857,9 @@ static void test_getconversionsize(void)
|
||||||
ok(hr == S_OK, "got 0x%08x\n", hr);
|
ok(hr == S_OK, "got 0x%08x\n", hr);
|
||||||
VariantClear(&var);
|
VariantClear(&var);
|
||||||
|
|
||||||
|
hr = IDataConvert_GetConversionSize(convert, DBTYPE_NUMERIC, DBTYPE_NUMERIC, NULL, &dst_len, NULL);
|
||||||
|
ok(hr == S_OK, "got 0x%08x\n", hr);
|
||||||
|
ok(dst_len == sizeof(DB_NUMERIC), "%ld\n", dst_len);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void test_converttobytes(void)
|
static void test_converttobytes(void)
|
||||||
|
|
Loading…
Reference in New Issue