Commit a744cc81 authored by Alistair Leslie-Hughes's avatar Alistair Leslie-Hughes Committed by Alexandre Julliard

oledb32: Support DBTYPE_NUMERIC in IDataConvert GetConversionSize.

parent c3b108e5
......@@ -139,6 +139,8 @@ static int get_length(DBTYPE type)
return sizeof(FILETIME);
case DBTYPE_GUID:
return sizeof(GUID);
case DBTYPE_NUMERIC:
return sizeof(DB_NUMERIC);
case DBTYPE_BYTES:
case DBTYPE_WSTR:
case DBTYPE_STR:
......
......@@ -2857,6 +2857,9 @@ static void test_getconversionsize(void)
ok(hr == S_OK, "got 0x%08x\n", hr);
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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment