Skip to content
Snippets Groups Projects
Commit 129e9dd1 authored by Michael Meskes's avatar Michael Meskes
Browse files

Fixed incorrect description of EXEC SQL VAR command.

Thanks to MauMau <maumau307@gmail.com> for finding and fixing this.
parent 921a0b20
No related branches found
No related tags found
No related merge requests found
......@@ -7682,9 +7682,9 @@ VAR <replaceable>varname</replaceable> IS <replaceable>ctype</replaceable>
<title>Description</title>
<para>
The <command>VAR</command> command defines a host variable. It
is equivalent to an ordinary C variable definition inside a
declare section.
The <command>VAR</command> command assigns a new C data type
to a host variable. The host variable must be previously
declared in a declare section.
</para>
</refsect1>
......@@ -7716,8 +7716,10 @@ VAR <replaceable>varname</replaceable> IS <replaceable>ctype</replaceable>
<title>Examples</title>
<programlisting>
EXEC SQL VAR vc IS VARCHAR[10];
EXEC SQL VAR boolvar IS bool;
Exec sql begin declare section;
short a;
exec sql end declare section;
EXEC SQL VAR a IS int;
</programlisting>
</refsect1>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment