File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -7682,9 +7682,9 @@ VAR <replaceable>varname</replaceable> IS <replaceable>ctype</replaceable>
7682
7682
<title>Description</title>
7683
7683
7684
7684
<para>
7685
- The <command>VAR</command> command defines a host variable. It
7686
- is equivalent to an ordinary C variable definition inside a
7687
- declare section.
7685
+ The <command>VAR</command> command assigns a new C data type
7686
+ to a host variable. The host variable must be previously
7687
+ declared in a declare section.
7688
7688
</para>
7689
7689
</refsect1>
7690
7690
@@ -7716,8 +7716,10 @@ VAR <replaceable>varname</replaceable> IS <replaceable>ctype</replaceable>
7716
7716
<title>Examples</title>
7717
7717
7718
7718
<programlisting>
7719
- EXEC SQL VAR vc IS VARCHAR[10];
7720
- EXEC SQL VAR boolvar IS bool;
7719
+ Exec sql begin declare section;
7720
+ short a;
7721
+ exec sql end declare section;
7722
+ EXEC SQL VAR a IS int;
7721
7723
</programlisting>
7722
7724
</refsect1>
7723
7725
You can’t perform that action at this time.
0 commit comments