From: Michael Meskes Date: Thu, 27 Jun 2013 14:00:32 +0000 (+0200) Subject: Fixed incorrect description of EXEC SQL VAR command. X-Git-Tag: REL9_2_5~49 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=129e9dd1a2527a5a69d9761f11991a1857bcd91d;p=postgresql Fixed incorrect description of EXEC SQL VAR command. Thanks to MauMau for finding and fixing this. --- diff --git a/doc/src/sgml/ecpg.sgml b/doc/src/sgml/ecpg.sgml index 4d904cdeb8..fc9ba0c018 100644 --- a/doc/src/sgml/ecpg.sgml +++ b/doc/src/sgml/ecpg.sgml @@ -7682,9 +7682,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. @@ -7716,8 +7716,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;