Attach Paradox blob file on open and enable pxfBLOb writes#4
Open
ivofcups wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR improves Paradox blob handling in
PxSession.cppby attaching the external blob file during session open and expanding blob write support.Changes
Call
PX_set_blob_file()afterPX_open_file()succeedsReset session state before opening:
open = falseblobfilepathResolve blob file using either
.mbor.MBSet
open = trueonly after initialization succeedsExtend
SetRowCol()to handlepxfBLObin addition topxfFmtMemoBLObandpxfMemoBLObWhy
Previously, the session opened the
.DBfile but did not attach the associated blob file, which could prevent correct handling of blob-backed fields. This change ensures the blob file is associated when present and broadens write support for generic blob fields.Testing
Built the project on Windows with MSYS2/MinGW
Verified the changes compile successfully
Confirmed the diff includes:
Open()pxfBLObhandling inSetRowCol()Risks / Notes
.mbor.MBfile existsOpen()returnsfalse