Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

COMMIT results in "Invalid or unsupported FunctionCode"

未关闭
#304 6 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
48/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
冷清
领域
backend, databases

调研方向

从 lib/protocol/Result.js 中的 handle() 开始,然后跟踪经过 Statement.js、Queue.js 和 Connection.js 的回复流程。使用 COMMIT 语句重现该问题,并检查其 FunctionCode 的处理方式。完成的标准是 COMMIT 在不引发 unsupported-FunctionCode 错误的情况下完成;如果 repository 中有相关的测试位置,还需要为此结果添加覆盖。

由索引模型根据 Issue 内容生成。

描述

When I execute a "commit" statement, this results in the following error:

Error: Invalid or unsupported FunctionCode
    at Result.handle (.../node_modules/hdb/lib/protocol/Result.js:113:13)
    at handleReply (.../node_modules/hdb/lib/protocol/Statement.js:173:12)
    at receive (.../node_modules/hdb/lib/util/Queue.js:114:18)
    at Connection.receive (.../node_modules/hdb/lib/protocol/Connection.js:455:5)
    at TLSSocket.ondata (.../node_modules/hdb/lib/protocol/Connection.js:289:12)
    at TLSSocket.emit (node:events:519:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5)
    at TLSWrap.onStreamRead (node:internal/stream_base_commons:189:23)

The commit works, and I can circumvent the problem by try-catching the exception and ignoring it, but it would be nice if this was supported.

主要语言
JavaScript
星标
323
派生
99
平均合并
24 分钟
30 天内合并 PR
1

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

SAP/node-hdb 的其他 Issue

查看 SAP/node-hdb 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。