Skip to content

Commit 2195ae8

Browse files
Yanghanrui666Yanghanrui666
authored andcommitted
docs: add missing ivorysql prefix to Oracle GUCs
1 parent 6d755f6 commit 2195ae8

10 files changed

Lines changed: 16 additions & 16 deletions

File tree

CN/modules/ROOT/pages/master/architecture/guc_framework.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262

6363
** 使用方法(以date为例)
6464

65-
查看nls date 的格式及datetime_ignore_nls_mask值
65+
查看nls date 的格式及ivorysql.datetime_ignore_nls_mask值
6666
```
6767
ivorysql=# set ivorysql.compatible_mode to oracle;
6868
SET

CN/modules/ROOT/pages/master/compatibility_features_design/case_conversion.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ PostmasterMain()-->SetCaseGucOption()-->GetCaseSwitchModeFromControl()
3333

3434
读取到参数值后调用 `SetConfigOption()` 函数进行赋值。
3535

36-
在每个新的后端进程开始的时候,由于是从 `postmaster` 进程 `fork` 而来,会自动拥有相同的 `ivorysql.identifier_case_switch` 参数值。首先处理 `startup` 包,其中如果包含 `database` 或者 `user` 这两个参数,则根据 `identifier_case_switch` 对参数值做相应的处理。
36+
在每个新的后端进程开始的时候,由于是从 `postmaster` 进程 `fork` 而来,会自动拥有相同的 `ivorysql.identifier_case_switch` 参数值。首先处理 `startup` 包,其中如果包含 `database` 或者 `user` 这两个参数,则根据 `ivorysql.identifier_case_switch` 对参数值做相应的处理。
3737

3838
源代码为:
3939

CN/modules/ROOT/pages/master/compatibility_features_design/nls_parameter.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ oravarcharchar(PG_FUNCTION_ARGS)
109109
}
110110
```
111111

112-
=== GUC参数 `datetime_ignore_nls_mask`
112+
=== GUC参数 `ivorysql.datetime_ignore_nls_mask`
113113

114114
这个参数被定义为一个int值,低四位分别表示是否在相应的日期时间格式上忽略NLS参数的影响,掩码定义如下:
115115
```c

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2174,7 +2174,7 @@ Id | flg
21742174
==== 示例
21752175
21762176
```undefined
2177-
set compatible_mode to oracle;
2177+
set ivorysql.compatible_mode to oracle;
21782178
21792179
create table students(student_id varchar(20) primary key ,
21802180
student_name varchar(40),

CN/modules/ROOT/pages/master/oracle_compatibility/compat_case_conversion.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,25 @@
66

77
== 目的
88

9-
- 为了满足PG和Oracle的引用标识符大小写兼容,ivorysql设计了三种引用标识符的大小写转换模式。通过guc参数“identifier_case_switch”选择转换模式;
9+
- 为了满足PG和Oracle的引用标识符大小写兼容,ivorysql设计了三种引用标识符的大小写转换模式。通过guc参数“ivorysql.identifier_case_switch”选择转换模式;
1010

1111
== 功能
1212

1313
=== 大小写转换的三种模式(默认为interchange)
1414

15-
- 如果 guc参数“identifier_case_switch”值为“normal”
15+
- 如果 guc参数“ivorysql.identifier_case_switch”值为“normal”
1616

1717
1). 保持双引号所引用的标识符中的字母大小写不变。
1818

19-
- 如果 guc参数“identifier_case_switch”值为“interchange”:
19+
- 如果 guc参数“ivorysql.identifier_case_switch”值为“interchange”:
2020

2121
1). 如果双引号所引用的标识符中的字母全部为大写,则将大写转换为小写。
2222

2323
2). 如果双引号所引用的标识符中的字母全部为小写,则将小写转换为大写。
2424

2525
3). 如果用双引号引起来的标识符中的字母是大小写混合的,则保持标识符不变。
2626

27-
- 如果 guc参数“identifier_case_switch”值为“lowercase”
27+
- 如果 guc参数“ivorysql.identifier_case_switch”值为“lowercase”
2828

2929
1). 如果双引号所引用的标识符中的字母全部为大写,则将大写转换为小写。
3030

CN/modules/ROOT/pages/master/oracle_compatibility/compat_nls_parameter.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,5 +112,5 @@ ivorysql=# show nls_currency;
112112
```
113113
[NOTE]
114114
====
115-
nls_currency和nls_iso_currency的行为,受兼容oracle大小写特性 `identifier_case_switch` 影响
115+
nls_currency和nls_iso_currency的行为,受兼容oracle大小写特性 `ivorysql.identifier_case_switch` 影响
116116
====

EN/modules/ROOT/pages/master/architecture/guc_framework.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ The optional values ​​of this GUC variable are from 0 to 15.
6161

6262
** Usage Example(date)
6363

64-
check value of **nls_date_format** and **datetime_ignore_nls_mask**
64+
check value of **nls_date_format** and **ivorysql.datetime_ignore_nls_mask**
6565
```
6666
ivorysql=# set ivorysql.compatible_mode to oracle;
6767
SET

EN/modules/ROOT/pages/master/compatibility_features_design/case_conversion.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ PostmasterMain()-->SetCaseGucOption()-->GetCaseSwitchModeFromControl()
3333

3434
After reading the parameter value, the `SetConfigOption()` function is called to assign the value.
3535

36-
When each new backend process starts, since it is forked from the `postmaster` process, it automatically has the same `ivorysql.identifier_case_switch` parameter value. First, it processes the `startup` packet, and if it contains `database` or `user` parameters, the parameter values are processed accordingly based on `identifier_case_switch`.
36+
When each new backend process starts, since it is forked from the `postmaster` process, it automatically has the same `ivorysql.identifier_case_switch` parameter value. First, it processes the `startup` packet, and if it contains `database` or `user` parameters, the parameter values are processed accordingly based on `ivorysql.identifier_case_switch`.
3737

3838
The source code is:
3939

EN/modules/ROOT/pages/master/compatibility_features_design/nls_parameter.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ oravarcharchar(PG_FUNCTION_ARGS)
103103
}
104104
```
105105

106-
=== GUC Parameter `datetime_ignore_nls_mask`
106+
=== GUC Parameter `ivorysql.datetime_ignore_nls_mask`
107107

108108
This parameter is defined as an int value, where the lower four bits indicate whether to ignore NLS parameter influence on the corresponding date-time formats. The mask definitions are:
109109
```c

EN/modules/ROOT/pages/master/oracle_compatibility/compat_case_conversion.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,25 @@
66

77
== Objective
88

9-
- In order to meet the case compatibility of PG and Oracle's reference identifiers, ivorysql has designed three case conversion modes for reference identifiers. Select the conversion mode via the GUC parameter "identifier_case_switch";
9+
- In order to meet the case compatibility of PG and Oracle's reference identifiers, ivorysql has designed three case conversion modes for reference identifiers. Select the conversion mode via the GUC parameter "ivorysql.identifier_case_switch";
1010

1111
== Function
1212

1313
=== Three modes of case conversion (interchange by default)
1414

15-
- If the value of the guc parameter "identifier_case_switch" is "normal":
15+
- If the value of the guc parameter "ivorysql.identifier_case_switch" is "normal":
1616

1717
1). The letters in the identifier referenced by the double quotation mark are left unchanged.
1818

19-
- If the value of the guc parameter "identifier_case_switch" is "interchange":
19+
- If the value of the guc parameter "ivorysql.identifier_case_switch" is "interchange":
2020

2121
1). If the letters in the identifier referenced by the double quotation mark are all uppercase, uppercase is converted to lowercase.
2222

2323
2). If the letters in the identifier referenced by the double quotation mark are all lowercase, lowercase is converted to uppercase.
2424

2525
3). If the letters in the identifier enclosed in double quotation marks are mixed-case, the identifier is left unchanged.
2626

27-
- If the value of the guc parameter "identifier_case_switch" is "lowercase":
27+
- If the value of the guc parameter "ivorysql.identifier_case_switch" is "lowercase":
2828

2929
1). If the letters in the identifier referenced by the double quotation mark are all uppercase, uppercase is converted to lowercase.
3030

0 commit comments

Comments
 (0)