From: Michael Meskes Date: Tue, 9 Sep 2003 10:54:44 +0000 (+0000) Subject: Fixed a few bugs that came up on pgsql-interfaces. X-Git-Tag: REL7_4_BETA3~72 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2fab61686600304c52acedb1911c6c6aeaf160d6;p=postgresql Fixed a few bugs that came up on pgsql-interfaces. --- diff --git a/doc/src/sgml/ecpg.sgml b/doc/src/sgml/ecpg.sgml index 22671a1b1f..ae321f5190 100644 --- a/doc/src/sgml/ecpg.sgml +++ b/doc/src/sgml/ecpg.sgml @@ -1,5 +1,5 @@ @@ -296,6 +296,7 @@ EXEC SQL SELECT foo INTO :FooBar FROM table1 WHERE ascii = 'doodad'; EXEC SQL DECLARE foo_bar CURSOR FOR SELECT number, ascii FROM foo ORDER BY ascii; +EXEC SQL OPEN foo_bar; EXEC SQL FETCH foo_bar INTO :FooBar, DooDad; ... EXEC SQL CLOSE foo_bar; @@ -450,8 +451,8 @@ char foo[16], bar[16]; - The special types VARCHAR and VARCHAR2 - are converted into a named struct for every variable. A + The special type VARCHAR + is converted into a named struct for every variable. A declaration like VARCHAR var[180]; @@ -1787,8 +1788,8 @@ ECPG = ecpg EXEC SQL OPEN cursor; is not copied to the output. Instead, the cursor's - DECLARE command is used because it opens the cursor as - well. + DECLARE command is used at the position of the OPEN command + because it indeed opens the cursor.