Commit Graph

102 Commits

Author SHA1 Message Date
Alistair Leslie-Hughes 7563a49721 oledb32: Fix typo.
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:42 +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 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 eb96566ef4 oledb32/tests: Add to DBTYPE_WSTR tests for 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-20 10:39:09 +02:00
Alistair Leslie-Hughes 39935fe5ad oledb32/tests: Add convert to DBTYPE_NUMERIC tests.
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-27 16:54:54 +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
Józef Kucia 97170a8a80 oledb32/tests: Do not use pointer to freed memory (Coverity).
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-07 16:33:38 +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
Alistair Leslie-Hughes 853de70bc0 oledb32/tests: Add tests for 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:19 +01:00
Alex Henrie 89b7529612 oledb32/tests: Fix a use-after-free in test_converttobyrefwstr.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-28 22:20:00 +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
Sebastian Lackner 81f110cc36 oledb32/tests: Fix incorrect usage of broken() function.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-08 23:15:00 +09: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 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