Commit 1b443bd5 authored by Alistair Leslie-Hughes's avatar Alistair Leslie-Hughes Committed by Alexandre Julliard

msdasql: Trace unsupported rowset interfaces.

parent c56b4389
......@@ -472,6 +472,21 @@ static HRESULT WINAPI msdasql_rowset_QueryInterface(IRowset *iface, REFIID riid,
{
*ppv = &rowset->IColumnsRowset_iface;
}
else if (IsEqualGUID(&IID_IRowsetChange, riid))
{
TRACE("IID_IRowsetChange not supported\n");
return E_NOINTERFACE;
}
else if (IsEqualGUID(&IID_IRowsetUpdate, riid))
{
TRACE("IID_IRowsetUpdate not supported\n");
return E_NOINTERFACE;
}
else if (IsEqualGUID(&IID_IRowsetLocate, riid))
{
TRACE("IID_IRowsetLocate not supported\n");
return E_NOINTERFACE;
}
if(*ppv)
{
......
......@@ -228,6 +228,7 @@ static void test_rowset_interfaces(IRowset *rowset)
IColumnsInfo *col_info;
IColumnsRowset *col_rs;
IAccessor *accessor;
IUnknown *unk;
HRESULT hr;
hr = IRowset_QueryInterface(rowset, &IID_IRowsetInfo, (void**)&info);
......@@ -245,6 +246,15 @@ static void test_rowset_interfaces(IRowset *rowset)
hr = IRowset_QueryInterface(rowset, &IID_IColumnsRowset, (void**)&col_rs);
ok(hr == S_OK, "got 0x%08x\n", hr);
IColumnsRowset_Release(col_rs);
hr = IRowset_QueryInterface(rowset, &IID_IRowsetChange, (void**)&unk);
ok(hr == E_NOINTERFACE, "got 0x%08x\n", hr);
hr = IRowset_QueryInterface(rowset, &IID_IRowsetUpdate, (void**)&unk);
ok(hr == E_NOINTERFACE, "got 0x%08x\n", hr);
hr = IRowset_QueryInterface(rowset, &IID_IRowsetLocate, (void**)&unk);
ok(hr == E_NOINTERFACE, "got 0x%08x\n", hr);
}
static void test_command_rowset(IUnknown *cmd)
......
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