summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Meskes2013-06-27 14:00:32 +0000
committerMichael Meskes2013-07-12 13:03:52 +0000
commit703bc145f773835637a8a01f2fe4cfb864835bb1 (patch)
tree6b4e9b56b8d8cddec02419f98119639bb83c6bf8
parentad4c625ee464b409f341d4680127e816391fe94f (diff)
Fixed incorrect description of EXEC SQL VAR command.
Thanks to MauMau <[email protected]> for finding and fixing this.
-rw-r--r--doc/src/sgml/ecpg.sgml12
1 files changed, 7 insertions, 5 deletions
diff --git a/doc/src/sgml/ecpg.sgml b/doc/src/sgml/ecpg.sgml
index 17800fc72fa..4ffffe96b37 100644
--- a/doc/src/sgml/ecpg.sgml
+++ b/doc/src/sgml/ecpg.sgml
@@ -7675,9 +7675,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>
@@ -7709,8 +7709,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>