mirror of
https://github.com/postgres/postgres.git
synced 2025-04-22 23:02:54 +03:00
Fixed incorrect description of EXEC SQL VAR command.
Thanks to MauMau <maumau307@gmail.com> for finding and fixing this.
This commit is contained in:
parent
469feb7afb
commit
d0450f1fa6
@ -7691,9 +7691,9 @@ VAR <replaceable>varname</replaceable> IS <replaceable>ctype</replaceable>
|
|||||||
<title>Description</title>
|
<title>Description</title>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
The <command>VAR</command> command defines a host variable. It
|
The <command>VAR</command> command assigns a new C data type
|
||||||
is equivalent to an ordinary C variable definition inside a
|
to a host variable. The host variable must be previously
|
||||||
declare section.
|
declared in a declare section.
|
||||||
</para>
|
</para>
|
||||||
</refsect1>
|
</refsect1>
|
||||||
|
|
||||||
@ -7725,8 +7725,10 @@ VAR <replaceable>varname</replaceable> IS <replaceable>ctype</replaceable>
|
|||||||
<title>Examples</title>
|
<title>Examples</title>
|
||||||
|
|
||||||
<programlisting>
|
<programlisting>
|
||||||
EXEC SQL VAR vc IS VARCHAR[10];
|
Exec sql begin declare section;
|
||||||
EXEC SQL VAR boolvar IS bool;
|
short a;
|
||||||
|
exec sql end declare section;
|
||||||
|
EXEC SQL VAR a IS int;
|
||||||
</programlisting>
|
</programlisting>
|
||||||
</refsect1>
|
</refsect1>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user