-
-
Notifications
You must be signed in to change notification settings - Fork 18
Slightly clearer description for the size of dpg_rpt field on Data Page documentation #225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Which ODS version did you check? Newer Firebird versions can have a different layout than that described in the document. |
Indeed, it looks like a miscount. |
[..]
The structs are copied from their definition in the Firebird sources, e.g. see |
Small note: I notice you submit your changes from the master of your fork. You may want to consider creating a branch for your changes, and leaving your master clean so it is easier to sync with our repository. |
As to the miscount, it seems I didn't pay attention when reviewing #161 |
* Add attribution for fix #225
Yeah, I can totally do that, thanks for the tip! You mean create a branch for the changes and merge them to the master after finished or submit the PR directly from the branch?
Oh! Okay, if it's the case, I agree. I'll check their source. At first glance I thought writing this way would lead to undefined behavior, but I'm likely wrong. Thanks 😄 |
You should submit the PR from the branch.
Not sure of the details of that. Consider asking on firebird-devel of you're interested. |
Fixed an open backtick on
hdr_bumped_transaction
description.Made a slightly clearer description for the size of the
dpg_rpt
field that now explicitly accounts for what is shown in the code block above it: An array of structs with two two byte fields.This PR contains a change I'm not sure about: I changed the starting offset of
dpg_rpt
. I tested I structure like the one described and got the following results:But it might be a convention that within the file it's padded by 2 bytes, I can't really verify right now.
I also would like to bring the suggestion to change the struct representation where arrays are present as last element from
to
using Flexible Array Members to make it easier to fit data into the struct, unless there's a better reason to use
SLONG ppg_page[1]
I don't know yet.