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

Commit9d88880

Browse files
committed
Support named parameters in information_schema.parameters,
per Dennis Bjorklund. I did not force initdb for this, butyou'd need to do one to get the improved view.
1 parentc8bcd5c commit9d88880

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

‎doc/src/sgml/information_schema.sgml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $PostgreSQL: pgsql/doc/src/sgml/information_schema.sgml,v 1.13 2003/12/13 23:59:06 neilc Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/information_schema.sgml,v 1.14 2004/01/24 23:45:13 tgl Exp $ -->
22

33
<chapter id="information-schema">
44
<title>The Information Schema</title>
@@ -1823,7 +1823,7 @@ ORDER BY c.ordinal_position;
18231823

18241824
<para>
18251825
The view <literal>parameters</literal> contains information about
1826-
the parameters (arguments) all functions in the current database.
1826+
the parameters (arguments)ofall functions in the current database.
18271827
Only those functions are shown that the current user has access to
18281828
(by way of being the owner or having some privilege).
18291829
</para>
@@ -1875,8 +1875,8 @@ ORDER BY c.ordinal_position;
18751875
<entry><literal>parameter_mode</literal></entry>
18761876
<entry><type>character_data</type></entry>
18771877
<entry>
1878-
Always <literal>IN</literal>, meaning input parameter (In the
1879-
future there might be other parameter modes.)
1878+
Always <literal>IN</literal>, meaning input parameter (in the
1879+
future there might be other parameter modes)
18801880
</entry>
18811881
</row>
18821882

@@ -1895,7 +1895,7 @@ ORDER BY c.ordinal_position;
18951895
<row>
18961896
<entry><literal>parameter_name</literal></entry>
18971897
<entry><type>sql_identifier</type></entry>
1898-
<entry>Always null, since <productname>PostgreSQL</> does not support named parameters</entry>
1898+
<entry>Name of the parameter, or null if the parameter has no name</entry>
18991899
</row>
19001900

19011901
<row>

‎src/backend/catalog/information_schema.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* Copyright 2003, PostgreSQL Global Development Group
66
*
7-
* $PostgreSQL: pgsql/src/backend/catalog/information_schema.sql,v 1.21 2003/12/17 22:11:30 tgl Exp $
7+
* $PostgreSQL: pgsql/src/backend/catalog/information_schema.sql,v 1.22 2004/01/24 23:45:13 tgl Exp $
88
*/
99

1010
/*
@@ -703,7 +703,7 @@ CREATE VIEW parameters AS
703703
CAST('IN'AS character_data)AS parameter_mode,
704704
CAST('NO'AS character_data)AS is_result,
705705
CAST('NO'AS character_data)AS as_locator,
706-
CAST(nullAS sql_identifier)AS parameter_name,
706+
CAST(NULLIF(p.proargnames[pos.n],'')AS sql_identifier)AS parameter_name,
707707
CAST(
708708
CASE WHENt.typelem<>0ANDt.typlen=-1 THEN'ARRAY'
709709
WHENnt.nspname='pg_catalog' THEN format_type(t.oid,null)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp