Skip to content

Commit a2769a4

Browse files
author
Michael Meskes
committed
Fixed incorrect description of EXEC SQL VAR command.
Thanks to MauMau <maumau307@gmail.com> for finding and fixing this.
1 parent 682d977 commit a2769a4

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

doc/src/sgml/ecpg.sgml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy