Commit 07002ec
docs(wire): clarify protocol-ambiguous fields and pin header reserved
- ISSUE-62: add regression test pinning Header.reserved/extra to 0 on
encode. Upstream C (message.h) names this field ``extra`` and reserves
it for future protocol extensions — if upstream ever repurposes it
(e.g. compression flags), this test fails and forces a conscious
update rather than silent mis-decode.
- ISSUE-64: OpenRequest.flags and OpenRequest.vfs are ignored by the
upstream dqlite server (gateway.c/handle_open never reads them).
Document that they exist for protocol compatibility only — users
should keep the defaults.
- ISSUE-68: document the ValueType.UNIXTIME asymmetry explicitly.
Upstream C server emits UNIXTIME from query.c for DATETIME columns,
upstream C client (tuple.c) rejects UNIXTIME with DQLITE_PARSE, and
our Python decoder accepts it — strictly more permissive than the C
client. Mock servers must not send UNIXTIME to real C clients.
- ISSUE-69: document the ``tail_offset``-drives-schema derivation on
StmtResponse. ``tail_offset=None`` → schema=0 (V0 body);
``tail_offset`` set to any int → schema=1 (V1 body). Mock-server
authors must match to the request schema byte.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 44da05e commit 07002ec
4 files changed
Lines changed: 46 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
76 | | - | |
77 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
78 | 85 | | |
79 | 86 | | |
80 | 87 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
111 | 117 | | |
112 | 118 | | |
113 | 119 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
156 | 163 | | |
157 | 164 | | |
158 | 165 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
31 | 54 | | |
32 | 55 | | |
33 | 56 | | |
| |||
0 commit comments