Skip to content

Commit ec76d10

Browse files
authored
Merge pull request #439 from 1030504258/master
修正AI翻译部分中文语义问题
2 parents 4ed5557 + ec8d3bd commit ec76d10

File tree

3 files changed

+13
-12
lines changed

3 files changed

+13
-12
lines changed

postgresql/doc/src/sgml/xaggr.sgml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ SELECT attrelid::regclass, array_accum(atttypid::regtype)
556556
</para>
557557
________________________________________________________-->
558558
<para>
559-
这是使用两种不同的实际数据类型作为参数的输出
559+
以下是使用两种不同的实际数据类型作为参数的输出
560560

561561
<programlisting>
562562
SELECT attrelid::regclass, array_accum(attname)
@@ -565,19 +565,19 @@ SELECT attrelid::regclass, array_accum(attname)
565565
GROUP BY attrelid;
566566

567567
attrelid | array_accum
568-
---------------+---------------------------------------
568+
-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-+-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-
569569
pg_tablespace | {spcname,spcowner,spcacl,spcoptions}
570-
(1 )
570+
(1 row)
571571

572572
SELECT attrelid::regclass, array_accum(atttypid::regtype)
573573
FROM pg_attribute
574574
WHERE attnum &gt; 0 AND attrelid = 'pg_tablespace'::regclass
575575
GROUP BY attrelid;
576576

577577
attrelid | array_accum
578-
---------------+---------------------------
578+
-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-+-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-
579579
pg_tablespace | {name,oid,aclitem[],text[]}
580-
(1 )
580+
(1 row)
581581
</programlisting>
582582
</para>
583583
<!-- pgdoc-cn_end sig_en=6de0a677de514a31915a9ea128d3bb98 -->

postgresql/doc/src/sgml/xfunc.sgml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -870,8 +870,9 @@ ________________________________________________________-->
870870
<para>
871871
如果在<literal>SELECT</literal>或<literal>RETURNING</literal>子句中,
872872
<acronym>SQL</acronym>函数的最终返回值类型与函数声明的结果类型不完全匹配,
873-
<productname>PostgreSQL</productname>将自动将该值转换为所需类型,
874-
如果可以使用隐式或赋值转换。否则,您必须编写显式转换。
873+
如果可以使用隐式或赋值转换,
874+
<productname>PostgreSQL</productname>将自动将该值转换为所需类型。
875+
否则,您必须编写显式转换。
875876
例如,假设我们希望前面的<function>add_em</function>函数返回<type>float8</type>类型。
876877
只需编写
877878

@@ -2794,13 +2795,13 @@ SELECT anyleast(10, -1, 5, 4);
27942795
anyleast
27952796
----------
27962797
-1
2797-
(1 )
2798+
(1 row)
27982799

27992800
SELECT anyleast('abc'::text, 'def');
28002801
anyleast
28012802
----------
28022803
abc
2803-
(1 )
2804+
(1 row)
28042805

28052806
CREATE FUNCTION concat_values(text, VARIADIC anyarray) RETURNS text AS $$
28062807
SELECT array_to_string($2, $1);
@@ -2810,7 +2811,7 @@ SELECT concat_values('|', 1, 4, 2);
28102811
concat_values
28112812
---------------
28122813
1|4|2
2813-
(1 )
2814+
(1 row)
28142815
</screen>
28152816
</para>
28162817
<!-- pgdoc-cn_end sig_en=be5c4caa8b339bfafe304d28279e671a -->
@@ -4218,7 +4219,7 @@ ________________________________________________________-->
42184219
<para>
42194220
<xref linkend="xfunc-c-type-table"/>显示了许多内置SQL数据类型对应的C类型,<productname>PostgreSQL</productname>的。
42204221
<quote>Defined In</quote>列给出了需要包含的头文件,以获取类型定义。
4221-
实际定义可能在包含的不同文件中。建议用户坚持定义的接口。)
4222+
实际的定义可能位于所列文件包含的其他文件中。建议用户坚持使用已定义的接口。)
42224223
请注意,您应该始终首先在服务器代码的任何源文件中包含<filename>postgres.h</filename>,
42234224
因为它声明了您将需要的许多内容,并且因为先包含其他头文件可能会导致可移植性问题。
42244225
</para>

postgresql/doc/src/sgml/xml2.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ FROM xpath_table('article_id', 'article_xml', 'articles',
617617
tblPeopleInfo AS p
618618
WHERE t.author_id = p.person_id;
619619
</programlisting>
620-
作为一个更复杂的示例。当然,您可以将所有这些内容包装在一个视图中以方便使用
620+
作为一个更复杂的示例。当然,为方便使用,您可以将所有这些内容都包装在一个视图中
621621
</para>
622622
<!-- pgdoc-cn_end sig_en=eba3a42c3e43a12dd7b3feaf20548d66 -->
623623

0 commit comments

Comments
 (0)