A dynaset (or dynamic recordset) now asks the driver for a
keyset-driven cursor. Moving to a record reads it again with
SQLFetchScroll, so values other users changed show, and a record they
deleted shows as deleted (IsDeleted, skipDeletedRecords). Move(0)
reads the current record again. With a driver that has no keyset
cursors, a dynaset keeps what it read, as before.
The test driver gains keyset cursors (row identities, SQLFetchScroll
with row status, SQLGetStmtAttr), and dbtest checks a dynaset against
a snapshot while another connection changes the table. The portable
layer gets stubs for the two new ODBC calls.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUqfQ3sTcDCMdNCGGs
Parameters marked outputParam or inoutParam are bound as such, with a
buffer as long as the field allows, and their values reach the members
once FlushResultSet goes past the last result set (or as the recordset
opens, for a procedure without one). A statement without a result set
is not fetched from. The test driver gains two procedures, and dbtest
calls them.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUqfQ3sTcDCMdNCGGs
The recordset caches fetched rows and writes changes with UPDATE,
INSERT and DELETE statements keyed on the fetched values, so it needs
no positioned cursors. Tests use an in-memory ODBC stand-in, since
Wine has no 32-bit ODBC driver to test against.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUqfQ3sTcDCMdNCGGs