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:
Alistair Leslie-Hughes 2017-03-16 04:53:56 +00:00 committed by Alexandre Julliard
parent c3b108e54b
commit a744cc81df
2 changed files with 5 additions and 0 deletions

View File

@ -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:

View File

@ -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)