Thread: 34.3.2. Using Cursors

34.3.2. Using Cursors

From
PG Doc comments form
Date:
The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/17/ecpg-commands.html
Description:

I think there is a missing colon in the example code "Select using
cursors":

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;
EXEC SQL COMMIT;

Should DooDad be prepended with a colon?