Skip to content

sqlite: persist enableDefensive() across reopen - #66404

Open
trivikr wants to merge 1 commit into
nodejs:mainfrom
trivikr:sqlite-enabledefensive-post-reopen
Open

trivikr wants to merge 1 commit into
nodejs:mainfrom
trivikr:sqlite-enabledefensive-post-reopen

Conversation

@trivikr

@trivikr trivikr commented Sep 30, 2026

Copy link
Copy Markdown
Member

Fixes: #66403

enableDefensive() updated only the live connection, so after close() and open() the defensive flag went back to the value passed to the constructor.

Store the new value in the open configuration so that open() applies it again.


Assisted-by: claude:opus-5.5

`enableDefensive()` updated only the live connection, so after
`close()` and `open()` the defensive flag went back to the value
passed to the constructor. Store the new value in the open
configuration so that `open()` applies it again.

Signed-off-by: Trivikram Kamat <16024985+trivikr@users.noreply.github.com>
Assisted-by: claude:opus-5.5
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/sqlite

@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. needs-ci PRs that need a full CI run. sqlite Issues and PRs related to the SQLite subsystem. labels Sep 30, 2026
@codecov

codecov Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.39%. Comparing base (f71d644) to head (c75a527).
⚠️ Report is 28 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #66404      +/-   ##
==========================================
+ Coverage   90.36%   90.39%   +0.02%     
==========================================
  Files         792      792              
  Lines      275564   275565       +1     
  Branches    52832    52829       -3     
==========================================
+ Hits       249016   249084      +68     
+ Misses      16965    16911      -54     
+ Partials     9583     9570      -13     
Files with missing lines Coverage Δ
src/node_sqlite.cc 81.98% <100.00%> (+0.06%) ⬆️

... and 37 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment thread test/parallel/test-sqlite-config.js
@trivikr
trivikr requested a review from araujogui September 30, 2026 19:25

@araujogui araujogui left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@trivikr trivikr added request-ci Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review. author ready PRs with CI started, the required approvals, and no outstanding review comments. labels Oct 1, 2026
@github-actions github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review. label Oct 1, 2026
@nodejs-github-bot

This comment was marked as outdated.

@trivikr trivikr added the resume-ci Add this label to resume the latest eligible Jenkins CI run on a PR with an approving review. label Oct 1, 2026
@github-actions github-actions Bot removed the resume-ci Add this label to resume the latest eligible Jenkins CI run on a PR with an approving review. label Oct 1, 2026
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@trivikr trivikr added the commit-queue PRs queued for automated landing through the Commit Queue. label Oct 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs with CI started, the required approvals, and no outstanding review comments. c++ Issues and PRs that require attention from people who are familiar with C++. commit-queue PRs queued for automated landing through the Commit Queue. needs-ci PRs that need a full CI run. sqlite Issues and PRs related to the SQLite subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

sqlite: enableDefensive() is lost after close()/open()

3 participants