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

Commitb284262

Browse files
committed
docs: Only first instance of a PREPARE parameter sets data type
If the first reference to $1 is "($1 = col) or ($1 is null)", the datatype can be determined, but not for "($1 is null) or ($1 = col)". Thischange documents this.Reported-by: Morgan OwensDiscussion:https://postgr.es/m/153233728858.1404.15268121695358514937@wrigleys.postgresql.orgBackpatch-through: 9.3
1 parent31380bc commitb284262

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎doc/src/sgml/ref/prepare.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ PREPARE <replaceable class="parameter">name</replaceable> [ ( <replaceable class
5252
parameter data types can optionally be specified. When a
5353
parameter's data type is not specified or is declared as
5454
<literal>unknown</literal>, the type is inferred from the context
55-
in which the parameter isused (if possible). When executing the
55+
in which the parameter isfirst referenced (if possible). When executing the
5656
statement, specify the actual values for these parameters in the
5757
<command>EXECUTE</command> statement. Refer to <xref
5858
linkend="sql-execute"/> for more
@@ -104,7 +104,7 @@ PREPARE <replaceable class="parameter">name</replaceable> [ ( <replaceable class
104104
The data type of a parameter to the prepared statement. If the
105105
data type of a particular parameter is unspecified or is
106106
specified as <literal>unknown</literal>, it will be inferred
107-
from the context in which the parameter isused. To refer to the
107+
from the context in which the parameter isfirst referenced. To refer to the
108108
parameters in the prepared statement itself, use
109109
<literal>$1</literal>, <literal>$2</literal>, etc.
110110
</para>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp