oracle / oracle/node-oracledb

Error updating CLOB w/ UTF8 charset

Open
#1,757 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
JavaScript
Stars
2.4k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

  1. What versions are you using?

Oracle 23.9.0.0, thin client.

process.platform: darwin
process.version: v24.2.0
process.arch: arm64
oracledb.versionString: 6.9.0
oracledb.oracleClientVersionString: undefined
  1. Is it an error or a hang or a crash?

Error

  1. What error(s) or behavior you are seeing?

When DB has charset UTF8 (instead of default AL32UTF8), UPDATE to CLOB column when it's not the only field being bound results in error:

ORA-01461: The value at bind position 2 exceeded the maximum VARCHAR2 length.
  1. Include a runnable Node.js script that shows the problem.

See https://github.com/xiongtx/node-oracledb-clob-bug.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the runnable Node.js reproduction linked in the issue and reproduce the UPDATE against Oracle 23.9 using the UTF8 charset, focusing on the CLOB bind at position 2. Compare the failing multi-bind update with the working case and verify that the CLOB update no longer raises ORA-01461.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
api, databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.