diff options
author | Bruce Momjian | 2018-08-09 14:13:15 +0000 |
---|---|---|
committer | Bruce Momjian | 2018-08-09 14:13:15 +0000 |
commit | b284262e40424daa1c546ad76f365b31304d7944 (patch) | |
tree | 7739483497032d7484cb8ad21967bb6b0c62053b | |
parent | 31380bc7c204e7cfa9c9e1c62947909e2b38577c (diff) |
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 data
type can be determined, but not for "($1 is null) or ($1 = col)". This
change documents this.
Reported-by: Morgan Owens
Discussion: https://postgr.es/m/[email protected]
Backpatch-through: 9.3
-rw-r--r-- | doc/src/sgml/ref/prepare.sgml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/src/sgml/ref/prepare.sgml b/doc/src/sgml/ref/prepare.sgml index 704fb5e4ab..3d799b5b57 100644 --- a/doc/src/sgml/ref/prepare.sgml +++ b/doc/src/sgml/ref/prepare.sgml @@ -52,7 +52,7 @@ PREPARE <replaceable class="parameter">name</replaceable> [ ( <replaceable class parameter data types can optionally be specified. When a parameter's data type is not specified or is declared as <literal>unknown</literal>, the type is inferred from the context - in which the parameter is used (if possible). When executing the + in which the parameter is first referenced (if possible). When executing the statement, specify the actual values for these parameters in the <command>EXECUTE</command> statement. Refer to <xref linkend="sql-execute"/> for more @@ -104,7 +104,7 @@ PREPARE <replaceable class="parameter">name</replaceable> [ ( <replaceable class The data type of a parameter to the prepared statement. If the data type of a particular parameter is unspecified or is specified as <literal>unknown</literal>, it will be inferred - from the context in which the parameter is used. To refer to the + from the context in which the parameter is first referenced. To refer to the parameters in the prepared statement itself, use <literal>$1</literal>, <literal>$2</literal>, etc. </para> |