GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — sqlite: bind empty ArrayBuffer as empty blob by araujogui · Pull Request #67657 · nodejs/node

Conversation

@araujogui

@araujogui araujogui commented Nov 20, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Use sqlite3_bind_zeroblob()/sqlite3_result_zeroblob() for zero-length buffers instead of passing a possibly-null data pointer, which SQLite treats as NULL.

On main, empty views were already fixed indirectly by #62343, but empty ArrayBuffer/SharedArrayBuffer values were still bound, and returned from user-defined functions, as NULL. Detached ArrayBuffers now also bind as empty blobs, matching views on detached buffers.

Fixes: #67188

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@araujogui
sqlite: bind empty ArrayBuffer as empty blob
68e9096
A zero-length ArrayBuffer or SharedArrayBuffer can have a null data
pointer, and SQLite treats a null blob pointer as NULL. As a result,
such values were bound as parameters, and returned from user-defined
functions, as NULL instead of an empty blob.

Use sqlite3_bind_zeroblob() and sqlite3_result_zeroblob() for empty
buffers.

Fixes: nodejs#67188
Refs: nodejs#62061
Assisted-by: Claude Opus 5.5
Signed-off-by: Guilherme Araújo <[email protected]>
Copilot AI balanced review requested due to automatic review settings November 20, 2026 13:44
@nodejs-github-bot

nodejs-github-bot commented Nov 20, 2026

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/sqlite
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Copilot AI reviewed Nov 20, 2026

Copilot AI left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@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 Nov 20, 2026
@araujogui
fixup! sqlite: bind empty ArrayBuffer as empty blob
a8da587
christianaurichzm
christianaurichzm approved these changes Nov 20, 2026
View reviewed changes

@christianaurichzm christianaurichzm left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

lgtm

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@christianaurichzm christianaurichzm added author ready PRs with CI started, the required approvals, and no outstanding review comments. request-ci Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review. labels Nov 20, 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 Nov 20, 2026
@nodejs-github-bot

nodejs-github-bot commented Nov 20, 2026

Copy link
Copy Markdown
Collaborator

CI: https://ci.nodejs.org/job/node-test-pull-request/79355/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@codecov

codecov Bot commented Nov 20, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.73%. Comparing base (5884b8e) to head (a8da587).
⚠️ Report is 13 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #67657      +/-   ##
==========================================
+ Coverage   90.71%   90.73%   +0.01%     
==========================================
  Files         801      801              
  Lines      280906   280966      +60     
  Branches    54249    54268      +19     
==========================================
+ Hits       254832   254930      +98     
+ Misses      16246    16200      -46     
- Partials     9828     9836       +8     
Files with missing lines Coverage Δ
src/node_sqlite.cc 82.98% <100.00%> (+0.06%) ⬆️

... and 30 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.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@christianaurichzm christianaurichzm added the resume-ci Add this label to resume the latest eligible Jenkins CI run on a PR with an approving review. label Nov 20, 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 Nov 20, 2026
@nodejs-github-bot

nodejs-github-bot commented Nov 20, 2026

Copy link
Copy Markdown
Collaborator

CI: https://ci.nodejs.org/job/node-test-pull-request/79363/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nodejs-github-bot

nodejs-github-bot commented Nov 20, 2026

Copy link
Copy Markdown
Collaborator

CI: https://ci.nodejs.org/job/node-test-pull-request/79373/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@araujogui araujogui added the commit-queue PRs queued for automated landing through the Commit Queue. label Nov 21, 2026
gurgunday
gurgunday approved these changes Nov 21, 2026
View reviewed changes

@gurgunday gurgunday left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

lgtm

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@nodejs-github-bot
nodejs-github-bot merged commit ec97d64 into nodejs:main Nov 22, 2026
72 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@nodejs-github-bot

nodejs-github-bot commented Nov 22, 2026

Copy link
Copy Markdown
Collaborator

Landed in ec97d64

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nodejs-github-bot nodejs-github-bot removed the commit-queue PRs queued for automated landing through the Commit Queue. label Nov 22, 2026
aduh95 pushed a commit that referenced this pull request Nov 23, 2026
@araujogui @aduh95
sqlite: bind empty ArrayBuffer as empty blob
cd86a6b
A zero-length ArrayBuffer or SharedArrayBuffer can have a null data
pointer, and SQLite treats a null blob pointer as NULL. As a result,
such values were bound as parameters, and returned from user-defined
functions, as NULL instead of an empty blob.

Use sqlite3_bind_zeroblob() and sqlite3_result_zeroblob() for empty
buffers.

Fixes: #67188
Refs: #62061
Assisted-by: Claude Opus 5.5
Signed-off-by: Guilherme Araújo <[email protected]>
PR-URL: #67657
Reviewed-By: Christian Aurich Zanettini Martins <[email protected]>
Reviewed-By: Gürgün Dayıoğlu <[email protected]>
@github-actions github-actions Bot mentioned this pull request Nov 24, 2026
2026-11-25, Version 27.0.0-alpha.0.2.0 (Alpha) #67757
Merged
@coderabbitai coderabbitai Bot mentioned this pull request Nov 25, 2026
perf(server): mutations sem SELECT *, cache de leitura nas escritas, INSERT por tabela e chave preguiçosa no formato 3 (PR 4B-3b) freecorps/ember#157
Merged
gabylb pushed a commit to gabylb/node that referenced this pull request Nov 27, 2026
@araujogui @gabylb
sqlite: bind empty ArrayBuffer as empty blob
81bcbbc
A zero-length ArrayBuffer or SharedArrayBuffer can have a null data
pointer, and SQLite treats a null blob pointer as NULL. As a result,
such values were bound as parameters, and returned from user-defined
functions, as NULL instead of an empty blob.

Use sqlite3_bind_zeroblob() and sqlite3_result_zeroblob() for empty
buffers.

Fixes: nodejs#67188
Refs: nodejs#62061
Assisted-by: Claude Opus 5.5
Signed-off-by: Guilherme Araújo <[email protected]>
PR-URL: nodejs#67657
Reviewed-By: Christian Aurich Zanettini Martins <[email protected]>
Reviewed-By: Gürgün Dayıoğlu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

Copilot code review Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Copilot left review comments
@christianaurichzm christianaurichzm christianaurichzm approved these changes
@gurgunday gurgunday gurgunday approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

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++. needs-ci PRs that need a full CI run. sqlite Issues and PRs related to the SQLite subsystem.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

sqlite: binding a zero-length Uint8Array to a parameter can result in NULL

Uh oh!

There was an error while loading. Please reload this page.

5 participants

@araujogui @nodejs-github-bot @christianaurichzm @gurgunday
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.