Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit703bc14

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 parentad4c625 commit703bc14

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
@@ -7675,9 +7675,9 @@ VAR <replaceable>varname</replaceable> IS <replaceable>ctype</replaceable>
76757675
<title>Description</title>
76767676

76777677
<para>
7678-
The <command>VAR</command> commanddefines ahost variable. It
7679-
is equivalent to an ordinary Cvariabledefinition inside a
7680-
declare section.
7678+
The <command>VAR</command> commandassigns anew C data type
7679+
to a host variable. The hostvariablemust be previously
7680+
declared in adeclare section.
76817681
</para>
76827682
</refsect1>
76837683

@@ -7709,8 +7709,10 @@ VAR <replaceable>varname</replaceable> IS <replaceable>ctype</replaceable>
77097709
<title>Examples</title>
77107710

77117711
<programlisting>
7712-
EXEC SQL VAR vc IS VARCHAR[10];
7713-
EXEC SQL VAR boolvar IS bool;
7712+
Exec sql begin declare section;
7713+
short a;
7714+
exec sql end declare section;
7715+
EXEC SQL VAR a IS int;
77147716
</programlisting>
77157717
</refsect1>
77167718

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp