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
9c70026092
oledb32: Convert to a BSTR to work out it size.
...
This makes code for handling variants with DBTYPE_STR and DBTYPE_WSTR
types consistent.
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-22 13:51:01 +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
Francois Gouget
11f1a21e9f
oledb32: Remove unneeded NONAMELESSXXX directives.
2015-03-17 14:19:03 +09:00
Alistair Leslie-Hughes
368cff7a59
oledb32: Implement DataConvert DBTYPE_I2 -> VARIANT.
2013-08-19 19:04:05 +02:00
Nikolay Sivov
75bde26bea
oledb32: Use heap helpers for allocation.
2013-08-02 11:25:00 +02:00
Alistair Leslie-Hughes
d04d1f5230
oledb32: Implement DataConvert Variant->R8.
2013-07-30 14:43:36 +02:00
Alistair Leslie-Hughes
805abf6d89
oledb32: Pass the correct value to SafeArrayPutElement.
2013-05-30 19:35:18 +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
5137fa71ed
oledb32: Correct typos.
2013-05-29 12:12:29 +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
Marcus Meissner
36fee7c2e5
oledb32: Avoid leak in error path on safearray conversion (Coverity).
2013-05-27 19:02:38 +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
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
Alistair Leslie-Hughes
faba70adfe
oledb32: Improve fixme in GetConversionSize.
2013-04-16 15:09:03 +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
Huw Davies
71d185d7fe
oledb32: Add a 'fall through' comment.
2012-11-27 17:00:24 +01:00