Commit Graph

87 Commits

Author SHA1 Message Date
Alistair Leslie-Hughes e5daf33978 oledb32: GetConversionSize shouldn't fail for null variants.
If we have a NULL variant which will be converted to a non-fixed sized
type (DBTYPE_WSTR) then we just return S_OK.

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>
2015-12-23 16:32:12 +01:00
Alistair Leslie-Hughes 0edd515b95 oledb32: Support VT_NULL on all conversions.
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>
2015-11-03 22:14:38 +09:00
Michael Stefaniuc e87857a521 oledb32/tests: Remove an unused assignment (PVS-Studio). 2015-03-04 21:50:42 +09:00
Alexandre Julliard 65180fb2e8 oledb32/tests: The destination array address can't be modified by the called function. 2015-03-04 21:50:33 +09:00
Michael Stefaniuc 6d3c83b869 oledb32/tests: Simplify some ok() checks (PVS-Studio). 2015-01-08 13:11:59 +01:00
Frédéric Delanoy 0a51a8203b oledb32/tests: Constify some character strings. 2013-12-27 14:31:53 +01:00
Alistair Leslie-Hughes 368cff7a59 oledb32: Implement DataConvert DBTYPE_I2 -> VARIANT. 2013-08-19 19:04:05 +02:00
Alistair Leslie-Hughes d04d1f5230 oledb32: Implement DataConvert Variant->R8. 2013-07-30 14:43:36 +02:00
Alistair Leslie-Hughes 5faa69d3e3 oledb32: DBTYPE_BYTES->DBTYPE_VARIANT only uses the source length. 2013-05-30 19:35:12 +02:00
Alistair Leslie-Hughes 471bdafa3b oledb32: Implement DataConvert DBTYPE_VARIANT->DBTYPE_BYTES. 2013-05-30 19:35:00 +02:00
Alistair Leslie-Hughes 40fcf66752 oledb32: Implement GetConversionSize, DBTYPE_VARIANT(VT_ARRAY|VT_UI1)->DBTYPE_BYTES. 2013-05-30 19:34:53 +02:00
Alistair Leslie-Hughes 4f2aefd8d5 oledb32: Implement DataConvert DBTYPE_R4->DBTYPE_VARIANT. 2013-05-29 12:06:25 +02:00
Alistair Leslie-Hughes 338cb2e5dd oledb32: GetConversionSize only returns a valid size of BSTR. 2013-05-27 19:21:57 +02:00
Alistair Leslie-Hughes 0fe64ce339 oledb32: Implement GetConversionSize DBTYPE_VARIANT -> DBTYPE_BYTES. 2013-05-27 19:20:06 +02:00
Alistair Leslie-Hughes 5b8a375ab9 oledb32: Check for DBSTATUS_S_ISNULL first. 2013-05-27 19:19:24 +02:00
Alistair Leslie-Hughes a1baa22d47 oledb32: DataConvert Support NULL variant in, DBTYPE_VARIANT->DBTYPE_WSTR. 2013-05-27 19:19:20 +02:00
Alistair Leslie-Hughes d103894ebc oledb32: Implemented DataConvert DBTYPE_BSTR->DBTYPE_DBTIMESTAMP. 2013-05-24 13:50:59 +02:00
Alistair Leslie-Hughes 7a762fee02 oledb32: DataConvert only variant length types can have a null dst. 2013-05-23 19:03:01 +02:00
Alistair Leslie-Hughes 72845af0a6 oledb32: Implement DataConvert DBTYPE_BYTES->DBTYPE_BYTES | DBTYPE_BYREF. 2013-05-23 19:03:01 +02:00
Alistair Leslie-Hughes 0d6eadc4a9 oledb32: Implement DataConvert DBTYPE_VARIANT->DBTYPE_DATE. 2013-05-23 19:03:01 +02:00
Alistair Leslie-Hughes 7dfa56886f oledb32: Source status DBSTATUS_S_ISNULL applies to all conversions. 2013-05-22 11:24:33 +02:00
Alistair Leslie-Hughes 24e56beec0 oledb32: Implement DataConvert DBTYPE_VARIANT(V_DATE)->DBTYPE_DBDATE. 2013-05-22 11:24:20 +02:00
Alistair Leslie-Hughes 89312f9d49 oledb32: Support DBSTATUS_S_ISNULL when converting to VARIANT. 2013-05-20 19:10:20 +02:00
Alistair Leslie-Hughes 70af1dd025 oledb32: Implement DataConvert DBTYPE_VARIANT(VT_DATE) to, DBTYPE_DBTIMESTAMP. 2013-05-20 19:10:17 +02:00
Alistair Leslie-Hughes d3c3a38f69 oledb32: Support VT_NULL when converting to DBTYPE_BSTR. 2013-05-17 16:40:53 +02:00
Alistair Leslie-Hughes 1527eeb720 oledb32: Implement DataConvert DBTYPE_DBDATE->DBTYPE_VARIANT. 2013-05-16 14:52:03 +02:00
Alistair Leslie-Hughes 0a5af7162d oledb32: Implement DataConvert DBTYPE_DBDATE->DBTYPE_DBDATE. 2013-05-16 14:51:59 +02:00
Alistair Leslie-Hughes e08a1d5bc1 oledb32: Implement DataConvert DBTYPE_DBTIMESTAMP->DBTYPE_VARIANT. 2013-05-16 14:50:45 +02:00
Alistair Leslie-Hughes cb4cef1231 oledb32: Implement DataConvert DBTYPE_BYTES->VARIANT. 2013-05-15 10:56:04 +02:00
Alistair Leslie-Hughes c476d1785e oledb32: Implement DataConvert DBTYPE_BYTES->DBTYPE_BYTES. 2013-05-14 17:29:01 +02:00
Alistair Leslie-Hughes d72787521e oledb32: Implement GetConversionSize DBTYPE_VARIANT->DBTYPE_WSTR. 2013-05-13 16:48:44 +02:00
Nikolay Sivov ff8fa96bb2 oledb32: Use shared convert instance, use a single skip. 2013-05-06 17:07:09 +02:00
Alistair Leslie-Hughes f5d64e0613 oledb32: Implement DataConvert DBTYPE_VARIANT->DBTYPE_UI4. 2013-04-25 13:42:16 +02:00
Alistair Leslie-Hughes b4b45471ca oledb32: Implement DataConvert DBTYPE_BOOL->VARIANT. 2013-04-24 19:42:34 +02:00
Alistair Leslie-Hughes 9d4284cc0d oledb32: Implement GetConversionSize DBTYPE_STR->DBTYPE_WSTR. 2013-04-23 15:35:01 +02:00
Alistair Leslie-Hughes aeb7362ef3 oledb32: Implement DataConvert DBTYPE_R8->VARIANT. 2013-04-23 15:34:59 +02:00
Alistair Leslie-Hughes 01c282550b oledb32: Implement DataConvert DBTYPE_I8->DBTYPE_VARIANT. 2013-04-22 12:46:23 +02:00
Alistair Leslie-Hughes dd104f6735 oledb32: Implement GetConversionSize DBTYPE_WSTR->DBTYPE_WSTR. 2013-04-22 12:46:02 +02:00
Nikolay Sivov d6c6a73738 oledb32: Implement DBTYPE_CY -> DBTYPE_VARIANT conversion. 2013-04-17 11:35:55 +02:00
Nikolay Sivov 726f50b506 oledb32: Implement DBTYPE_DATE -> DBTYPE_VARIANT conversion. 2013-04-17 11:35:51 +02:00
Alistair Leslie-Hughes e06cdb6207 oledb32: Implement DataConvert DBTYPE_BSTR->DBTYPE_I8. 2013-04-16 15:10:09 +02:00
Alistair Leslie-Hughes 975f1dcd7a oledb32: Implement DataConvert DBTYPE_I8->DBTYPE_I8. 2013-04-16 15:09:43 +02:00
Nikolay Sivov 872788356c oledb32: Implement DBTYPE_I4 -> DBTYPE_VARIANT conversion. 2013-04-11 19:32:33 +02:00
Nikolay Sivov 1d462aabea oledb32: Destination status and length are optional. 2013-04-11 19:32:33 +02:00
Nikolay Sivov 38a362a25c oledb32: Implement DBTYPE_BSTR to DBTYPE_VARIANT conversion. 2013-04-08 11:37:40 +02:00
Nikolay Sivov 960852f447 oledb32: Implement GetConversionSize for DBTYPE_VARIANT -> DBTYPE_STR case. 2013-04-08 11:37:33 +02:00
Nikolay Sivov 15bb6bfa68 oledb32: Implemented conversion from DBTYPE_VARIANT to DBTYPE_BSTR. 2013-04-08 11:37:26 +02:00
Alistair Leslie-Hughes 8f8212b856 oledb32: Add support for IDBInitialize interface in IDataInitialize. 2012-10-03 13:15:43 +02:00
Alistair Leslie-Hughes d911374b9c oledb32: Add DBTYPE_UI2 support to DataConvert. 2011-07-07 19:22:42 +02:00
Greg Geldorp f8e71a346c oledb32: Use correct 32/64-bit typedefs.
Paul Vriens did the hard stuff of figuring out that the typedefs in
oledb.idl were not correct.
2010-12-31 12:15:55 +01:00