Commit 7d686c22 authored by Alistair Leslie-Hughes's avatar Alistair Leslie-Hughes Committed by Alexandre Julliard

msdasql: Trace session interfaces.

parent 0977ce7c
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment