The non-idempotent column handler problem
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- javascript, node.js
Research direction
Start with the supplied JavaScript reproduction in thin mode and trace how fetchTypeHandler metadata is reused when the same SQL is executed twice. Inspect the statement-cache path; done means repeated executions do not carry the prior metadata.name mutation and the regression is covered by a test.
Written by the indexing model from the issue text.
Description
The error https://github.com/oracle/node-oracledb/issues/1769 has appeared in a new version.
const sql = `SELECT to_blob('') as b FROM dual`;
const fetchTypeHandler = metadata => {
console.log('metadata.name.before =', metadata.name);
metadata.name += '_tail';
console.log('metadata.name.after =', metadata.name);
};
await conn.execute(sql, {}, { outFormat: oracledb.OUT_FORMAT_OBJECT, fetchTypeHandler });
// call the same sql twice:
await conn.execute(sql, {}, { outFormat: oracledb.OUT_FORMAT_OBJECT, fetchTypeHandler });
prints:
metadata.name.before = B
metadata.name.after = B_tail
metadata.name.before = B_tail
metadata.name.after = B_tail_tail
It is probably related to statements cache.
oracledb@7.0.0
thin mode
- Dominant language
- JavaScript
- Stars
- 2.4k
- Forks
- 1.1k
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from oracle/node-oracledb
-
question
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
oracle/node-oracledb#1787 · 1 comment ·
-
bug patch available
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
oracle/node-oracledb#1570 · 8 comments ·
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 45/100
oracle/node-oracledb#1788 ·
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 48/100
oracle/node-oracledb#1785 · 2 comments ·
-
bug patch available
Difficulty 4/5 3-5 days Newbie friendliness 35/100
oracle/node-oracledb#1784 ·
All issues in oracle/node-oracledb
Similar issues
-
code-quality refactoring
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
github/gh-aw-firewall#8816 ·
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
optimization optimization:agents-md-curator
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
githubnext/gh-aw-cao#13143 ·
-
status: needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100