Commit Graph

60 Commits

Author SHA1 Message Date
Francois Gouget 64a7783386 msdasql: Remove a couple of unneeded NULL casts.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-14 21:20:42 +01:00
Alistair Leslie-Hughes 50fc9d7ddc msdasql: ICommandText Execute use ODBC to fetch results.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-07 10:57:26 +01:00
Alistair Leslie-Hughes bdb7bb1022 msdasql/tests: Fix printf format warnings with long types.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-01 20:55:09 +01:00
Alistair Leslie-Hughes 35cf06c3e1 msdasql: Add ITransaction to session interface.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-01 20:55:04 +01:00
Alistair Leslie-Hughes 0b97767269 msdasql: Fix printf format warnings with long types.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-01 20:54:46 +01:00
Alexandre Julliard f0cd33c69e include: Add support for defining Win32 types as 'long' where possible.
Add -DWINE_NO_LONG_TYPES to modules that still have compilation
warnings with long types.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-27 20:38:22 +01:00
Alistair Leslie-Hughes 7bdef00a75 msdasql: Add ITransactionJoin to session interface.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-26 21:53:57 +01:00
Alistair Leslie-Hughes 7491a7f13f msdasql: Implement ICommandPrepare Prepare.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-25 12:37:41 +01:00
Alistair Leslie-Hughes 1636530c81 msdasql: Fix logic when dumping diagnostics records.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-25 12:37:39 +01:00
Alistair Leslie-Hughes 513feedff7 msdasql/tests: Test for ITransaction* interfaces on a session.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-24 21:44:51 +01:00
Alistair Leslie-Hughes 9d1e3b3a76 msdasql: Connect to DSN in IDBInitialize Initialize.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-21 13:15:12 +01:00
Francois Gouget 0ed15c56d1 msdasql/tests: Fix the spelling of the command_text variable.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-12-07 16:19:48 +01:00
Alistair Leslie-Hughes 109db990b9 msdasql: Implement IGetDataSource GetDataSource.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-17 16:04:39 +01:00
Alistair Leslie-Hughes fbca126660 msdasql: Move ICommandWithParameters to the correct interface.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-17 16:04:33 +01:00
Alistair Leslie-Hughes 422caf2161 msdasql: Return S_OK in ICommandPrepare Un/Prepare.
These functions are to attempt to optimize the query that is about
to be run.  We can safely ignore these calls.

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-17 16:04:18 +01:00
Alistair Leslie-Hughes 5f8e3a0c74 msdasql: Support NULL dialect in GetCommandText.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-16 10:10:05 +01:00
Alistair Leslie-Hughes 0d29647f07 msdasql: Add ICommandWithParameters to command interface.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-16 10:10:02 +01:00
Alistair Leslie-Hughes 26c4a1edc7 msdasql: Implement IRowsetInfo GetSpecification.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-15 18:40:30 +01:00
Alistair Leslie-Hughes f43b312562 msdasql: IDBProperties doesn't support DBPROPSET_DATASOURCEINFO property set.
Native msado15 queries this to workout if interface IMultipleResults can
be used with CreateCommand.

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-10 14:05:55 +01:00
Alistair Leslie-Hughes 5cadb64695 msdasql: Fix initial query value.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-09 11:29:04 +01:00
Alistair Leslie-Hughes 61d1152c7c msdasql: Fixup GetCommandText wrt dialect.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-09 11:28:59 +01:00
Alistair Leslie-Hughes b5c4d178a0 msdasql: Fix use after free (Coverity).
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-08 17:35:09 +01:00
Alistair Leslie-Hughes c8b0e5b138 msdasql: Correct default dialect logic.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-08 17:35:04 +01:00
Alistair Leslie-Hughes 7d686c2263 msdasql: Trace session interfaces.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-08 17:34:53 +01:00
Alistair Leslie-Hughes 0f0d3c4859 msdasql: Implement IDBProperties SetProperties.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-08 17:34:38 +01:00
Alistair Leslie-Hughes 6e94e87994 msdasql: Implement IDBProperties GetProperties.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-05 10:24:27 +01:00
Alistair Leslie-Hughes 626f85f5f6 msdasql/tests: Add MSDASQL_ENUMERATOR tests.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-03 21:06:29 +01:00
Alistair Leslie-Hughes 9e76b504e5 msdasql: Support IAccessor in IRowset for Enumeration.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-03 21:06:23 +01:00
Alistair Leslie-Hughes cf82bc5417 msdasql: Implement ISourcesRowset GetSourcesRowset for enumeration.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-03 21:05:53 +01:00
Alistair Leslie-Hughes 23d264d327 msdasql: Support CLSID_MSDASQL_ENUMERATOR interface.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-03 21:04:44 +01:00
Alistair Leslie-Hughes 1b443bd516 msdasql: Trace unsupported rowset interfaces.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-02 17:09:39 +01:00
Alistair Leslie-Hughes c56b43891f msdasql: Add IColumnsRowset support to rowset.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-02 17:09:39 +01:00
Alistair Leslie-Hughes 5edd674216 msdasql: Add IAccessor to rowset.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-02 17:09:39 +01:00
Alistair Leslie-Hughes 60c97a57c2 msdasql: Support IColumnsInfo in Rowset.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-02 17:09:39 +01:00
Alistair Leslie-Hughes 3c34f073c0 msdasql: Support IRowsetInfo in IRowset interface.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-02 17:09:39 +01:00
Alistair Leslie-Hughes 6649396abe msdasql: Correct ICommandText Execute test.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-02 17:09:39 +01:00
Alistair Leslie-Hughes c0cf153751 msdasql: Return valid object from ICommandText Execute.
Until we query ODBC, we aren't able workout if we need a recordset
or not.  As a start, always return an interface, this way we can
add the required interface for a rowset.

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-31 17:12:02 +01:00
Alistair Leslie-Hughes dd279bd015 msdasql: Implement ICommandText GetDBSession.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-31 17:12:00 +01:00
Alistair Leslie-Hughes 3dd785def7 msdasql: Implement ICommandText Get/Set CommandText.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-31 17:11:52 +01:00
Alistair Leslie-Hughes 22689f6f8a msdasql: Add ICommandPrepare interface for ICommandText.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-31 17:11:46 +01:00
Alistair Leslie-Hughes fed2ca76c1 msdasql: Add IConvertType interface for ICommandText.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-29 21:26:08 +02:00
Alistair Leslie-Hughes d9e0dde2ca msdasql: Add IColumnsInfo interface for ICommandText.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-29 21:26:02 +02:00
Alistair Leslie-Hughes e18045a662 msdasql: Trace unsupported interfaces.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-29 21:25:51 +02:00
Alistair Leslie-Hughes 1bc19b0c40 msdasql: Add ICommandProperties interface to ICommandText.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-29 21:25:41 +02:00
Alistair Leslie-Hughes 067c0e91e3 msdasql: Implement IDBCreateCommand CreateCommand.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-29 21:25:21 +02:00
Alistair Leslie-Hughes e5f7a73c83 msdasql: Add IDBCreateCommand to session.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-28 19:31:17 +02:00
Alistair Leslie-Hughes 2f4e22d053 msdasql: Add ISessionProperties to session.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-28 19:31:06 +02:00
Alistair Leslie-Hughes 4ba940afaa msdasql: Add IOpenRowset support to session.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-28 19:30:58 +02:00
Alistair Leslie-Hughes 33563cf16f msdasql: Add IGetDataSource support to session.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-28 19:30:46 +02:00
Alistair Leslie-Hughes 097bde4691 msdasql: Add IPersist interface support.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-27 17:23:43 +02:00