Commit Graph
3 Commits
Author SHA1 Message Date
Claude fc8854d5d0 Let a dynaset see other users' changes through a keyset-driven cursor
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
2026-11-11 13:46:07 +00:00
Claude a780b4acc1 Return stored procedures' output parameters to CRecordset
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
2026-11-08 14:56:43 +00:00
Claude fb35ca4ba7 Add ODBC classes: CDatabase, CRecordset, CRecordView, RFX and DDX_Field
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
2026-11-06 20:11:02 +00:00