Skip to content

Commit 7ffa025

Browse files
committed
Modify the title to prevent ambiguity
1 parent eb74134 commit 7ffa025

File tree

3 files changed

+17
-5
lines changed

3 files changed

+17
-5
lines changed

CN/modules/ROOT/pages/master/6.4.1.adoc

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@
88
IvorySQL提供兼容Oracle内置函数`SYS_CONTEXT('namespace', 'parameter' [, length ])`,
99
返回当前时刻与给定上下文关联参数的值,可以在SQL和PLSQL语言中使用。
1010

11+
提供以下命名空间:
12+
13+
* USERENV​ - 用于描述当前会话。
14+
15+
* SYS_SESSION_ROLES​ - 指示某个特定角色在当前会话中是否已启用。
16+
1117
== 实现原理
1218

1319
SYS_CONTEXT的实现原理是通过动态查询系统表与postgres的内置函数,确保结果的实时性,
@@ -44,7 +50,7 @@ BEGIN
4450
END;
4551
$$ LANGUAGE plisql SECURITY INVOKER;
4652
```
47-
== USERENV支持的参数
53+
== 命名空间USERENV支持的参数
4854
[cols="2,8"]
4955
|====
5056
|*参数名称*|*返回值*
@@ -77,7 +83,7 @@ $$ LANGUAGE plisql SECURITY INVOKER;
7783
|ENTRYID | 当前审计条目编号。审计条目编号序列在细粒度审计记录和常规审计记录之间共享。不能在分布式 SQL 语句中使用此属性。只有通过标准或细粒度审计的审计处理程序才能看到正确的审计条目标识符。
7884
|TERMINAL | 当前会话客户端的操作系统标识符。在分布式 SQL 语句中,该属性返回本地会话的标识符。在分布式环境中,仅支持远程 SELECT 语句,不支持远程 INSERT、UPDATE 或 DELETE 操作。(此参数的返回长度可能因操作系统而异)。
7985
|====
80-
== SYS_SESSION_ROLES支持的参数
86+
== 命名空间SYS_SESSION_ROLES支持的参数
8187
[cols="2,8"]
8288
|====
8389
|*参数名称*|*返回值*

EN/modules/ROOT/pages/master/6.4.1.adoc

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66
IvorySQL provides compatibility with the Oracle built-in function `SYS_CONTEXT('namespace', 'parameter' [, length ])`,
77
which returns the value of the parameter associated with the given context at the current moment. It can be used in both SQL and PL/SQL languages.
88

9+
IvorySQL provides the following built-in namespaces:
10+
11+
* USERENV - Describes the current session.
12+
13+
* SYS_SESSION_ROLES - Indicates whether a specified role is currently enabled for the session.
14+
915
== Implementation Principle
1016

1117
The implementation principle of `SYS_CONTEXT` involves dynamically querying system tables and PostgreSQL's built-in functions to ensure real-time results.
@@ -43,7 +49,7 @@ BEGIN
4349
END;
4450
$$ LANGUAGE plisql SECURITY INVOKER;
4551
```
46-
== Parameters Supported by USERENV
52+
== Parameters supported by namespace `USERENV`
4753

4854
[cols="3,7"]
4955
|====
@@ -79,7 +85,7 @@ The session ID.
7985
|TERMINAL | The operating system identifier for the client of the current session. In distributed SQL statements, this attribute returns the identifier for your local session. In a distributed environment, this is supported only for remote SELECT statements, not for remote INSERT, UPDATE, or DELETE operations. (The return length of this parameter may vary by operating system.)
8086
|====
8187

82-
== Parameters Supported by SYS_SESSION_ROLES
88+
== Parameters supported by namespace `SYS_SESSION_ROLES`
8389

8490
[cols="3,7"]
8591
|====

EN/modules/ROOT/pages/master/6.4.2.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ AS $$
4444
$$ LANGUAGE sql STRICT;
4545
```
4646

47-
== Supported Parameters for USERENV
47+
== Supported parameters
4848

4949
[cols="3,7"]
5050
|====

0 commit comments

Comments
 (0)