From 703bc145f773835637a8a01f2fe4cfb864835bb1 Mon Sep 17 00:00:00 2001 From: Michael Meskes Date: Thu, 27 Jun 2013 16:00:32 +0200 Subject: [PATCH] Fixed incorrect description of EXEC SQL VAR command. Thanks to MauMau for finding and fixing this. --- doc/src/sgml/ecpg.sgml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/doc/src/sgml/ecpg.sgml b/doc/src/sgml/ecpg.sgml index 17800fc72f..4ffffe96b3 100644 --- a/doc/src/sgml/ecpg.sgml +++ b/doc/src/sgml/ecpg.sgml @@ -7675,9 +7675,9 @@ VAR varname IS ctype Description - The VAR command defines a host variable. It - is equivalent to an ordinary C variable definition inside a - declare section. + The VAR command assigns a new C data type + to a host variable. The host variable must be previously + declared in a declare section. @@ -7709,8 +7709,10 @@ VAR varname IS ctype Examples -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; -- 2.40.0