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 @@ -7691,9 +7691,9 @@ VAR <replaceable>varname</replaceable> IS <replaceable>ctype</replaceable>
76917691 <title>Description</title>
76927692
76937693 <para>
7694- The <command>VAR</command> command defines a host variable. It
7695- is equivalent to an ordinary C variable definition inside a
7696- declare section.
7694+ The <command>VAR</command> command assigns a new C data type
7695+ to a host variable. The host variable must be previously
7696+ declared in a declare section.
76977697 </para>
76987698 </refsect1>
76997699
@@ -7725,8 +7725,10 @@ VAR <replaceable>varname</replaceable> IS <replaceable>ctype</replaceable>
77257725 <title>Examples</title>
77267726
77277727<programlisting>
7728- EXEC SQL VAR vc IS VARCHAR[10];
7729- EXEC SQL VAR boolvar IS bool;
7728+ Exec sql begin declare section;
7729+ short a;
7730+ exec sql end declare section;
7731+ EXEC SQL VAR a IS int;
77307732</programlisting>
77317733 </refsect1>
77327734
You can’t perform that action at this time.
0 commit comments