Commit Graph

90 Commits

Author SHA1 Message Date
Michael Stefaniuc f9ddf9ad6d oledb32: Use the global HeapAlloc() wrappers.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-05 10:00:04 +01:00
Alistair Leslie-Hughes 4ee4d4e2ad oledb32: Coerce Variant to VT_DATE when converting data.
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>
2018-01-03 10:44:02 +01:00
Alistair Leslie-Hughes 4a5759dcc2 oledb32: DataConvert support DBTYPE_VARIANT -> DBTYPE_R4.
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>
2017-11-08 20:19:35 +01:00
Alistair Leslie-Hughes 70d54d8c67 oledb32: Support DBTYPE_DBTIMESTAMP to DBTYPE_WSTR in DataConvert.
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>
2017-06-28 11:30:32 +02:00
Alistair Leslie-Hughes 9d11f0f962 oledb32: Support DB/DATE/TIME/TIMESTAMP in GetConversionSize for W/STR.
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>
2017-06-27 11:27:47 +02:00
Alistair Leslie-Hughes 6e148790f4 oledb32: Add FIXME for DBTYPE_NUMERIC type.
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>
2017-06-22 10:58:01 +02:00
Alistair Leslie-Hughes 23b5640b32 oledb32: Add support for converting to W/STR types in 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>
2017-06-22 10:57:05 +02:00
Alistair Leslie-Hughes b257f29473 oledb32: Supply a default dst len in 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>
2017-06-22 10:57:03 +02:00
Alistair Leslie-Hughes a744cc81df 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>
2017-03-16 10:05:24 +01:00
Huw Davies aedd6e951c oledb32: Fix conversion of strings with embedded '\0' to DBTYPE_STR | DBTYPE_BYREF.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-01 15:57:25 +01:00
Huw Davies 28debe67d2 oledb32: Fixed length calculation in conversion to DBTYPE_STR.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-01 15:57:15 +01:00
Alistair Leslie-Hughes 98a2465abd oledb32: Support converting to DBTYPE_BYREF | DBTYPE_STR in DataConvert.
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>
2017-02-22 11:32:14 +01:00
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