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 @@ -7675,9 +7675,9 @@ VAR <replaceable>varname</replaceable> IS <replaceable>ctype</replaceable>
7675
7675
<title>Description</title>
7676
7676
7677
7677
<para>
7678
- The <command>VAR</command> command defines a host variable. It
7679
- is equivalent to an ordinary C variable definition inside a
7680
- declare section.
7678
+ The <command>VAR</command> command assigns a new C data type
7679
+ to a host variable. The host variable must be previously
7680
+ declared in a declare section.
7681
7681
</para>
7682
7682
</refsect1>
7683
7683
@@ -7709,8 +7709,10 @@ VAR <replaceable>varname</replaceable> IS <replaceable>ctype</replaceable>
7709
7709
<title>Examples</title>
7710
7710
7711
7711
<programlisting>
7712
- EXEC SQL VAR vc IS VARCHAR[10];
7713
- EXEC SQL VAR boolvar IS bool;
7712
+ Exec sql begin declare section;
7713
+ short a;
7714
+ exec sql end declare section;
7715
+ EXEC SQL VAR a IS int;
7714
7716
</programlisting>
7715
7717
</refsect1>
7716
7718
You can’t perform that action at this time.
0 commit comments