msado15: Implement _Recordset_Open and _Recordset_Close.

Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
stable
Hans Leidekker 2019-12-12 17:12:25 +01:00 committed by Alexandre Julliard
parent d5f77d6db7
commit 554502d6aa
1 changed files with 13 additions and 4 deletions

View File

@ -901,8 +901,13 @@ static HRESULT WINAPI recordset_CancelUpdate( _Recordset *iface )
static HRESULT WINAPI recordset_Close( _Recordset *iface )
{
FIXME( "%p\n", iface );
return E_NOTIMPL;
struct recordset *recordset = impl_from_Recordset( iface );
TRACE( "%p\n", recordset );
close_recordset( recordset );
recordset->state = adStateClosed;
return S_OK;
}
static HRESULT WINAPI recordset_Delete( _Recordset *iface, AffectEnum affect_records )
@ -950,9 +955,13 @@ static HRESULT WINAPI recordset_MoveLast( _Recordset *iface )
static HRESULT WINAPI recordset_Open( _Recordset *iface, VARIANT source, VARIANT active_connection,
CursorTypeEnum cursor_type, LockTypeEnum lock_type, LONG options )
{
FIXME( "%p, %s, %s, %d, %d, %d\n", iface, debugstr_variant(&source), debugstr_variant(&active_connection),
struct recordset *recordset = impl_from_Recordset( iface );
FIXME( "%p, %s, %s, %d, %d, %d\n", recordset, debugstr_variant(&source), debugstr_variant(&active_connection),
cursor_type, lock_type, options );
return E_NOTIMPL;
recordset->state = adStateOpen;
return S_OK;
}
static HRESULT WINAPI recordset_Requery( _Recordset *iface, LONG options )