René's URL Explorer Experiment


Title: sqlite: custom function callback errors should be reported to sqlite API · Issue #56772 · nodejs/node · GitHub

Open Graph Title: sqlite: custom function callback errors should be reported to sqlite API · Issue #56772 · nodejs/node

X Title: sqlite: custom function callback errors should be reported to sqlite API · Issue #56772 · nodejs/node

Description: In the callback wrapper for user-provided functions (ie. those added with DatabaseSync#function()), error conditions in the JS callback result in an early return to the sqlite API: node/src/node_sqlite.cc Lines 202 to 207 in 1c7c32f Mayb...

Open Graph Description: In the callback wrapper for user-provided functions (ie. those added with DatabaseSync#function()), error conditions in the JS callback result in an early return to the sqlite API: node/src/node_sq...

X Description: In the callback wrapper for user-provided functions (ie. those added with DatabaseSync#function()), error conditions in the JS callback result in an early return to the sqlite API: node/src/node_sq...

Opengraph URL: https://github.com/nodejs/node/issues/56772

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"sqlite: custom function callback errors should be reported to sqlite API","articleBody":"In the callback wrapper for user-provided functions (ie. those added with `DatabaseSync#function()`), error conditions in the JS callback result in an early return to the sqlite API:\n\nhttps://github.com/nodejs/node/blob/1c7c32f96128ac2ae5472dd2da425d9cf638b453/src/node_sqlite.cc#L202-L207\n\nIn sqlite, this results in the return value of the user-defined function being implicitly set to NULL. It does not signal an error condition from the callback.\n\nThis raises the potential for user function callbacks to encounter error conditions, but still cause side-effects in sqlite. As a basic example:\n\n```js\nconst sqlite = require('node:sqlite');\nconst db = new sqlite.DatabaseSync(':memory:');\ndb.exec('CREATE TABLE test (id NUMBER NOT NULL PRIMARY KEY, data TEXT)');\n\n// create a user-defined function that throws\ndb.function('MYFUNC', function () { throw new Error('MYFUNC callback threw!') });\n\n// fill table with arbitrary data\n{\n  const stmt = db.prepare('INSERT INTO test (id, data) VALUES (?, ?)');\n  for (let i = 0; i \u003c 10; i++) {\n    stmt.run(i, Math.random().toString());\n  }\n}\n\ndb.prepare('SELECT * FROM test').all();\n// [\n//   [Object: null prototype] { id: 0, data: '0.5786694350792139' },\n//   [Object: null prototype] { id: 1, data: '0.9442753197210123' },\n//   ...\n// ]\n\ndb.exec('UPDATE test SET data = MYFUNC()');\n// Uncaught Error: MYFUNC callback threw!\n\ndb.prepare('SELECT * FROM test').all();\n// [\n//   [Object: null prototype] { id: 0, data: null },\n//   [Object: null prototype] { id: 1, data: null },\n//   ...\n// ]\n```\n\nError conditions in the user function callback should call [`sqlite3_result_error()`](https://www.sqlite.org/c3ref/result_blob.html) in order to signal the sqlite API that an error has occurred and that the query should be aborted.","author":{"url":"https://github.com/Renegade334","@type":"Person","name":"Renegade334"},"datePublished":"2025-01-26T15:21:10Z","url":"https://github.com/nodejs/node/issues/56772"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:e41355bd-d21d-3f4d-4929-e4b780e9d508
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC822:3714B8:9098F1:C6CB2C:6B044F21
html-safe-nonce546818c0ed6fc81264cfa58e7c77c10e23de90d4bc95a00dbe2e6d31314034f3
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDODIyOjM3MTRCODo5MDk4RjE6QzZDQjJDOjZCMDQ0RjIxIiwidmlzaXRvcl9pZCI6IjI5NDg4ODMwMDYzMDUzNTc2MDEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacc98d1958e0fa7184faf88d05c2a1f76c96dd0f8ec74ae2e6d2876026b41fee94
hovercard-subject-tagissue:2811617703
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/56772/issue_layout
twitter:imagehttps://opengraph.githubassets.com/b8099d5dfea6901c46e90dcb4ecaa694e80d022dfff4ca61a7bbc8eee52b8de8/nodejs/node/issues/56772
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b8099d5dfea6901c46e90dcb4ecaa694e80d022dfff4ca61a7bbc8eee52b8de8/nodejs/node/issues/56772
og:image:altIn the callback wrapper for user-provided functions (ie. those added with DatabaseSync#function()), error conditions in the JS callback result in an early return to the sqlite API: node/src/node_sq...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameRenegade334
hostnamegithub.com
expected-hostnamegithub.com
None002aa6b95ffa730b0aec436a5c383f536ad677284e60056037fb120afe37b730
turbo-cache-controlno-preview
go-importgithub.com/nodejs/node git https://github.com/nodejs/node.git
octolytics-dimension-user_id9950313
octolytics-dimension-user_loginnodejs
octolytics-dimension-repository_id27193779
octolytics-dimension-repository_nwonodejs/node
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id27193779
octolytics-dimension-repository_network_root_nwonodejs/node
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release059f24c781e3a0d7df3f27a97da0e93fab06ae39
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/nodejs/node/issues/56772#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F56772
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F56772
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=nodejs%2Fnode
Reloadhttps://github.com/nodejs/node/issues/56772
Reloadhttps://github.com/nodejs/node/issues/56772
Reloadhttps://github.com/nodejs/node/issues/56772
nodejshttps://github.com/nodejs
nodehttps://github.com/nodejs/node
Codehttps://github.com/nodejs/node
Issues633 (633)https://github.com/nodejs/node/issues
Pull requests671 (671)https://github.com/nodejs/node/pulls
Actionshttps://github.com/nodejs/node/actions
Projectshttps://github.com/nodejs/node/projects
Security and qualityhttps://github.com/nodejs/node/security
Insightshttps://github.com/nodejs/node/insights
https://github.com/nodejs/node
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node/issues/56772
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node/issues/56772
#56787https://github.com/nodejs/node/pull/56787
sqlite: custom function callback errors should be reported to sqlite APIhttps://github.com/nodejs/node/issues/56772#top
#56787https://github.com/nodejs/node/pull/56787
https://github.com/Renegade334
Renegade334https://github.com/Renegade334
on Jan 26, 2025https://github.com/nodejs/node/issues/56772#issue-2811617703
node/src/node_sqlite.cchttps://github.com/nodejs/node/blob/1c7c32f96128ac2ae5472dd2da425d9cf638b453/src/node_sqlite.cc#L202-L207
1c7c32fhttps://github.com/nodejs/node/commit/1c7c32f96128ac2ae5472dd2da425d9cf638b453
sqlite3_result_error()https://www.sqlite.org/c3ref/result_blob.html
Charlesnorris509https://github.com/Charlesnorris509
on Jan 26, 2025https://github.com/nodejs/node/issues/56772#event-16070641618
Fix sqlite custom function callback errors reportinghttps://github.com/Charlesnorris509/node/commit/f22b998f2085f995c63d55182f9c5fb74c1ebe11
https://docs.github.com/articles/closing-issues-via-commit-messages
f22b998https://github.com/Charlesnorris509/node/commit/f22b998f2085f995c63d55182f9c5fb74c1ebe11
https://github.com/cjihrig
cjihrighttps://github.com/cjihrig
on Jan 26, 2025https://github.com/nodejs/node/issues/56772#issuecomment-2614564667
cjihrig@f113c39https://github.com/cjihrig/node/commit/f113c39eff456af889814c259880320eb9d3eaa5
#56773https://github.com/nodejs/node/pull/56773
https://github.com/Renegade334
Renegade334https://github.com/Renegade334
on Jan 26, 2025https://github.com/nodejs/node/issues/56772#issuecomment-2614569107
nodejs-github-bothttps://github.com/nodejs-github-bot
completedhttps://github.com/nodejs/node/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#56787https://github.com/nodejs/node/pull/56787
on Feb 4, 2025https://github.com/nodejs/node/issues/56772#event-16179379625
nodejs-github-bothttps://github.com/nodejs-github-bot
completedhttps://github.com/nodejs/node/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
c4fb331https://github.com/nodejs/node/commit/c4fb331390b5e9b2c6e328cc9e32a23b0e15d997
on Feb 4, 2025https://github.com/nodejs/node/issues/56772#event-16179379648
pullhttps://github.com/apps/pull
on Feb 4, 2025https://github.com/nodejs/node/issues/56772#event-16179415744
sqlite: handle conflicting SQLite and JS errorshttps://github.com/suddenlyGiovanni/node/commit/c4fb331390b5e9b2c6e328cc9e32a23b0e15d997
c4fb331https://github.com/suddenlyGiovanni/node/commit/c4fb331390b5e9b2c6e328cc9e32a23b0e15d997
targoshttps://github.com/targos
on Feb 5, 2025https://github.com/nodejs/node/issues/56772#event-16191975343
sqlite: handle conflicting SQLite and JS errorshttps://github.com/nodejs/node/commit/01d732d629b7769eec4d27c5a1c6058f7310086f
01d732dhttps://github.com/nodejs/node/commit/01d732d629b7769eec4d27c5a1c6058f7310086f
acidineyhttps://github.com/acidiney
on Feb 23, 2025https://github.com/nodejs/node/issues/56772#event-16422374707
sqlite: handle conflicting SQLite and JS errorshttps://github.com/acidiney/node/commit/5a98c94468ffade16dac6944d603638fe477a09a
5a98c94https://github.com/acidiney/node/commit/5a98c94468ffade16dac6944d603638fe477a09a
RafaelGSShttps://github.com/RafaelGSS
on May 14, 2025https://github.com/nodejs/node/issues/56772#event-17660553782
sqlite: handle conflicting SQLite and JS errorshttps://github.com/nodejs/node/commit/67e6826a4c4e577331b8a346c779a78132e2f1b4
67e6826https://github.com/nodejs/node/commit/67e6826a4c4e577331b8a346c779a78132e2f1b4
aduh95https://github.com/aduh95
on May 16, 2025https://github.com/nodejs/node/issues/56772#event-17690979337
sqlite: handle conflicting SQLite and JS errorshttps://github.com/nodejs/node/commit/f98694bc6093b06acdce26f83db379a9d04be179
f98694bhttps://github.com/nodejs/node/commit/f98694bc6093b06acdce26f83db379a9d04be179
sqlite: handle conflicting SQLite and JS errorshttps://github.com/nodejs/node/commit/d053e4aafa212c06cd68d5b7a0a9f0013a8f006c
d053e4ahttps://github.com/nodejs/node/commit/d053e4aafa212c06cd68d5b7a0a9f0013a8f006c
sqlite: handle conflicting SQLite and JS errorshttps://github.com/nodejs/node/commit/0a611ca109e961e291e5925494d2b6ac7a1d0c61
0a611cahttps://github.com/nodejs/node/commit/0a611ca109e961e291e5925494d2b6ac7a1d0c61
sqlite: handle conflicting SQLite and JS errorshttps://github.com/nodejs/node/commit/cfe15ca7b46d62e6b210f5081911f8a3698a9d58
cfe15cahttps://github.com/nodejs/node/commit/cfe15ca7b46d62e6b210f5081911f8a3698a9d58
Sign up for freehttps://github.com/signup?return_to=https://github.com/nodejs/node/issues/56772
Sign in to commenthttps://github.com/login?return_to=https://github.com/nodejs/node/issues/56772
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.