Skip to content

fix: correct logic for the WithInPlaceRestore and WithPlaceRestore options#211

Open
AnyCPU wants to merge 1 commit intonakagami:masterfrom
AnyCPU:fix/nbackup_options_1
Open

fix: correct logic for the WithInPlaceRestore and WithPlaceRestore options#211
AnyCPU wants to merge 1 commit intonakagami:masterfrom
AnyCPU:fix/nbackup_options_1

Conversation

@AnyCPU
Copy link
Contributor

@AnyCPU AnyCPU commented Mar 10, 2026

the WithInPlaceRestore option sets InPlaceRestore = false and
the WithPlaceRestore options sets InPlaceRestore = true.

corresponding boolean values are swapped relative to their function names.
this means calling WithInPlaceRestore() actually prevents the isc_spb_nbk_inplace flag from being sent to Firebird, which is the opposite of what callers expect.

FIX

update code and related test to use the correct function name for enabling in-place restore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant