IRowsetChange::DeleteRows and IRowset::GetNextRows
"LABELLE, Maxime" <[email protected]> Thu, 24 Apr 2003 16:37:47 +0200
| Newsgroups | gmane.comp.windows.devel.oledb.devel |
|---|---|
| Message-ID | <[email protected]> |
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C30A6F.13437E06
Content-Type: text/plain;
charset="iso-8859-1"
Hi all,
I'm about to add support for IRowsetChange to my own OLEDB abstraction
layer,
and have some questions about its behavior, with regards to IRowset.
Is it possible to delete the current row, and then continue to iterate over
the rowset?
In other words, is the following pseudo-code valid?
IRowset::GetNextRows(DB_NULL_HCHAPTER, 0L, 1L, ...) -> hRow
IRowset::GetData(hRow, ...)
IRowsetChange::DeleteRows(DB_NULL_HCHAPTER, 1L, &hRow, ...)
IRowsetUpdate::Update(DB_NULL_HCHAPTER, 1L, &hRow, ...)
IRowset::GetNextRows(DB_NULL_HCHAPTER, 0L, 1L, ...) -> hRow
...
If it is not valide, would it be all right without calling
IRowsetUpdate::Update immediatly
(This will sort of cache all pending requests and apply them all in one go)
?
Cheers.
Maxime.
You can read messages from the OLEDB_DEV archive, unsubscribe from OLEDB_DEV,
or subscribe to other DevelopMentor lists at http://discuss.develop.com.
------_=_NextPart_001_01C30A6F.13437E06
Content-Type: text/html;
charset="iso-8859-1"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE></TITLE>
<META content="MSHTML 5.00.3315.2870" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT size=2><FONT face=Arial>Hi all,<BR><BR>I'm about to add support for
IRowsetChange to my own OLEDB abstraction layer,<BR>and have some questions
about its behavior, with regards to IRowset.<BR><BR>Is it possible to delete the
current row, and then continue to iterate over the rowset?<BR>In other words, is
the following pseudo-code valid?<BR></FONT></FONT></DIV>
<DIV><FONT size=2><FONT face=Arial>
IRowset::GetNextRows(DB_NULL_HCHAPTER, 0L, 1L, ...) ->
hRow<BR> IRowset::GetData(hRow, ...)</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2>
IRowsetChange::DeleteRows(DB_NULL_HCHAPTER, 1L, &hRow, ...)</FONT></DIV>
<DIV><FONT face=Arial size=2>
IRowsetUpdate::Update(DB_NULL_HCHAPTER, 1L, &hRow, ...)</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>
IRowset::GetNextRows(DB_NULL_HCHAPTER, 0L, 1L, ...) -> hRow</FONT></DIV>
<DIV><FONT face=Arial size=2> ...</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>If it is not valide, would it be all right without
calling IRowsetUpdate::Update immediatly</FONT></DIV>
<DIV><FONT face=Arial size=2>(This will sort of cache all pending requests and
apply them all in one go) ?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Cheers.</FONT></DIV>
<DIV><FONT face=Arial size=2>Maxime.</FONT></DIV></BODY></HTML>
You can read messages from the OLEDB_DEV archive, unsubscribe from OLEDB_DEV,
or subscribe to other DevelopMentor lists at http://discuss.develop.com.
------_=_NextPart_001_01C30A6F.13437E06--