Skip to content
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

[GPKG] Fix crash in GPKG rollback after PR #11609 #11680

Merged
merged 1 commit into from
Jan 17, 2025

Conversation

elpaso
Copy link
Collaborator

@elpaso elpaso commented Jan 17, 2025

Hopefully Fix #11679

Take care of syncing the array of generated
columns when rolling back.

I've made PrepareStartTransaction and FinishRollbackTransaction virtual for consistency with other methods of the same base class because I can foresee cases were we will need to override.

Hopefully Fix OSGeo#11679

Take care of syncing the array of generated
columns when rolling back.
@elpaso elpaso added bug regression Bug that did not exist in a prior release labels Jan 17, 2025
@coveralls
Copy link
Collaborator

Coverage Status

coverage: 70.075% (-0.001%) from 70.076%
when pulling 8e4a70b on elpaso:fix-rollback-crash
into eda0808 on OSGeo:master.

{
}

std::unique_ptr<T> poFieldDefn;
int iField;
FieldChangeType eChangeType;
// Used by drivers (GPKG) to track generated fields
bool bGenerated;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just thinking that it could be perhaps worthwhile to have the generated boolean in OGRFieldDefn itself (could apply to other drivers), but that's likely out of scope of this PR / work ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree it could be better moved to OGRFieldDefn but I'd prefer to do it in a separate PR.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fine. I'm merging this as it

@rouault rouault merged commit f41af17 into OSGeo:master Jan 17, 2025
38 of 40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug regression Bug that did not exist in a prior release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crash in test_ogr_gpkg_field_operations_rollback
3 participants