ivorysql_ora: DBMS_SESSION lacks SLEEP (documented, not covered by #2763)

未關閉 適合新手
#3,360 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
2/5
預估耗時
1-3 小時
新手友好度
68/100
Issue 類型
功能
描述清晰度
描述清楚
活躍度
活躍
技術堆疊
postgresql, sql
領域
database

研究方向

DBMS_SESSION 套件定義在 ivorysql_ora 的 SQL/PL 原始碼中。請先找到定義 SET_CONTEXT 與 LIST_CONTEXT 的現有規格與套件本體,然後新增一個委派給 pg_sleep 的 SLEEP(seconds NUMBER) 成員。檢查 dbms_session.sleep(1) 能否執行且不出現 'doesn't exist in package' 錯誤,並確認 0.5 等小數秒可以正常運作。

由索引模型根據 Issue 內容生成。

描述

What happened?

DBMS_SESSION.SLEEP(seconds) is documented in the Oracle PL/SQL Packages and Types Reference (19c), but the dbms_session package in ivorysql_ora implements only the application-context subset (SET_CONTEXT/CLEAR_CONTEXT/CLEAR_ALL_CONTEXT/LIST_CONTEXT/RESET_PACKAGE).

#2763 implements UNIQUE_SESSION_ID / IS_ROLE_ENABLED / SET_ROLE / SET_NLS / IS_SESSION_ALIVE, but SLEEP is not among them, so the gap remains.

What did you expect to happen?

DBMS_SESSION.SLEEP(seconds NUMBER) suspends the session for the given number of seconds (fractional values allowed, matching Oracle's NUMBER parameter).

Reproduction

BEGIN
  dbms_session.sleep(1);
END;
-- ERROR: "sleep" doesn't exist in package "dbms_session"

Fix proposal

Add the SLEEP member to the package spec/body, implemented via pg_sleep (fractional seconds supported). Pure package-level change, no C changes required.

Fixes this gap in the #2762/#2763 series.

主要語言
C
星號
1.1k
分支
232
平均合併
2 天 12 小時
30 天內合併 PR
16

環境準備

這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

IvorySQL/IvorySQL 的其他 Issue

查看 IvorySQL/IvorySQL 的全部 Issue

相似的 Issue

更多 C Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。