Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5f62856

Browse files
committed
Fix missing parentheses for current_query(), per bug #5378.
Also make a couple other minor editorial improvements.
1 parent12c2f2f commit5f62856

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

‎doc/src/sgml/func.sgml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.509 2010/03/16 16:03:24 sriggs Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.510 2010/03/18 15:29:44 tgl Exp $ -->
22

33
<chapter id="functions">
44
<title>Functions and Operators</title>
@@ -11512,7 +11512,7 @@ postgres=# select * from unnest2(array[[1,2],[3,4]]);
1151211512
<row>
1151311513
<entry><literal><function>current_schemas</function>(<type>boolean</type>)</literal></entry>
1151411514
<entry><type>name[]</type></entry>
11515-
<entry>names of schemas in search path optionally including implicit schemas</entry>
11515+
<entry>names of schemas in search path, optionally including implicit schemas</entry>
1151611516
</row>
1151711517

1151811518
<row>
@@ -11522,11 +11522,11 @@ postgres=# select * from unnest2(array[[1,2],[3,4]]);
1152211522
</row>
1152311523

1152411524
<row>
11525-
<entry><literal><function>current_query</function></literal></entry>
11525+
<entry><literal><function>current_query</function>()</literal></entry>
1152611526
<entry><type>text</type></entry>
1152711527
<entry>text of the currently executing query, as submitted
1152811528
by the client (might contain more than one statement)</entry>
11529-
</row>
11529+
</row>
1153011530

1153111531
<row>
1153211532
<!-- See also the entry for this in monitoring.sgml -->
@@ -11612,6 +11612,17 @@ postgres=# select * from unnest2(array[[1,2],[3,4]]);
1161211612
</tgroup>
1161311613
</table>
1161411614

11615+
<note>
11616+
<para>
11617+
<function>current_catalog</function>, <function>current_schema</function>,
11618+
<function>current_user</function>, <function>session_user</function>,
11619+
and <function>user</function> have special syntactic status
11620+
in <acronym>SQL</acronym>: they must be called without trailing
11621+
parentheses. (In PostgreSQL, parentheses can optionally be used with
11622+
<function>current_schema</function>, but not with the others.)
11623+
</para>
11624+
</note>
11625+
1161511626
<indexterm>
1161611627
<primary>user</primary>
1161711628
<secondary>current</secondary>
@@ -11657,17 +11668,6 @@ postgres=# select * from unnest2(array[[1,2],[3,4]]);
1165711668
the current user is the <quote>effective user</quote>.
1165811669
</para>
1165911670

11660-
<note>
11661-
<para>
11662-
<function>current_catalog</function>, <function>current_schema</function>,
11663-
<function>current_user</function>, <function>session_user</function>,
11664-
and <function>user</function> have special syntactic status
11665-
in <acronym>SQL</acronym>: they must be called without trailing
11666-
parentheses (optional in PostgreSQL in the case
11667-
of <function>current_schema</function>).
11668-
</para>
11669-
</note>
11670-
1167111671
<para>
1167211672
<function>current_schema</function> returns the name of the schema that is
1167311673
first in the search path (or a null value if the search path is

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp