GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — sqlite: binding a zero-length `Uint8Array` to a parameter can result in `NULL` · Issue #67188 · nodejs/node Closed Closed Copy link DescriptionVersionv22.23.4 PlatformSubsystemsqlite What steps will reproduce the bug?const { DatabaseSync } = require('node:sqlite'); const db = new DatabaseSync(':memory:'); // Expected: prints { type: 'blob' } console.log(db.prepare('SELECT typeof(?) AS type').get(new Uint8Array())); // Unexpected: prints { type: 'null' } console.log(db.prepare('SELECT typeof(?) AS type').get(new Uint8Array(new ArrayBuffer(0)))); How often does it reproduce? Is there a required condition?The above code seems to reproduce the issue deterministically. What is the expected behavior? Why is that the expected behavior?All zero-length What do you see instead?
Additional informationThis seems to be fixed in v24 and v26. My agent (GPT-6.1 Sol on Codex CLI) told me the following:
Activity
MetadataMetadata |
| 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. |