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

Commita2769a4

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 parent682d977 commita2769a4

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
@@ -7691,9 +7691,9 @@ VAR <replaceable>varname</replaceable> IS <replaceable>ctype</replaceable>
76917691
<title>Description</title>
76927692

76937693
<para>
7694-
The <command>VAR</command> commanddefines ahost variable. It
7695-
is equivalent to an ordinary Cvariabledefinition inside a
7696-
declare section.
7694+
The <command>VAR</command> commandassigns anew C data type
7695+
to a host variable. The hostvariablemust be previously
7696+
declared in adeclare section.
76977697
</para>
76987698
</refsect1>
76997699

@@ -7725,8 +7725,10 @@ VAR <replaceable>varname</replaceable> IS <replaceable>ctype</replaceable>
77257725
<title>Examples</title>
77267726

77277727
<programlisting>
7728-
EXEC SQL VAR vc IS VARCHAR[10];
7729-
EXEC SQL VAR boolvar IS bool;
7728+
Exec sql begin declare section;
7729+
short a;
7730+
exec sql end declare section;
7731+
EXEC SQL VAR a IS int;
77307732
</programlisting>
77317733
</refsect1>
77327734

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp