msdasql: Trace session interfaces.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
0977ce7cef
commit
7d686c2263
|
@ -102,6 +102,16 @@ static HRESULT WINAPI session_QueryInterface(IUnknown *iface, REFIID riid, void
|
|||
TRACE("(%p)->(IDBCreateCommand_iface %p)\n", iface, ppv);
|
||||
*ppv = &session->IDBCreateCommand_iface;
|
||||
}
|
||||
else if(IsEqualGUID(&IID_IBindResource, riid))
|
||||
{
|
||||
TRACE("(%p)->(IID_IBindResource not support)\n", iface);
|
||||
return E_NOINTERFACE;
|
||||
}
|
||||
else if(IsEqualGUID(&IID_ICreateRow, riid))
|
||||
{
|
||||
TRACE("(%p)->(IID_ICreateRow not support)\n", iface);
|
||||
return E_NOINTERFACE;
|
||||
}
|
||||
|
||||
if(*ppv)
|
||||
{
|
||||
|
|
|
@ -367,6 +367,8 @@ static void test_sessions(void)
|
|||
IDBCreateCommand *create_command = NULL;
|
||||
IGetDataSource *datasource = NULL;
|
||||
ISessionProperties *session_props = NULL;
|
||||
IUnknown *unimplemented = NULL;
|
||||
ITransactionJoin *join = NULL;
|
||||
IUnknown *cmd = NULL;
|
||||
HRESULT hr;
|
||||
BSTR connect_str;
|
||||
|
@ -415,6 +417,17 @@ static void test_sessions(void)
|
|||
ok(hr == S_OK, "got 0x%08x\n", hr);
|
||||
IGetDataSource_Release(datasource);
|
||||
|
||||
hr = IUnknown_QueryInterface(session, &IID_ITransactionJoin, (void**)&join);
|
||||
todo_wine ok(hr == S_OK, "got 0x%08x\n", hr);
|
||||
if(hr == S_OK)
|
||||
ITransactionJoin_Release(join);
|
||||
|
||||
hr = IUnknown_QueryInterface(session, &IID_IBindResource, (void**)&unimplemented);
|
||||
ok(hr == E_NOINTERFACE, "got 0x%08x\n", hr);
|
||||
|
||||
hr = IUnknown_QueryInterface(session, &IID_ICreateRow, (void**)&unimplemented);
|
||||
ok(hr == E_NOINTERFACE, "got 0x%08x\n", hr);
|
||||
|
||||
hr = IUnknown_QueryInterface(session, &IID_ISessionProperties, (void**)&session_props);
|
||||
ok(hr == S_OK, "got 0x%08x\n", hr);
|
||||
ISessionProperties_Release(session_props);
|
||||
|
|
Loading…
Reference in New Issue