Thanks to MauMau for finding and fixing this.
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.
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;