thoroughly broken examples on the Dynamic SQL page - Mailing list pgsql-docs

From PG Doc comments form
Subject thoroughly broken examples on the Dynamic SQL page
Date
Msg-id 158281875655.30439.3164486065108716610@wrigleys.postgresql.org
Whole thread Raw
Responses Re: thoroughly broken examples on the Dynamic SQL page
List pgsql-docs
The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/11/ecpg-dynamic.html
Description:

Has anyone tried the examples on the
https://www.postgresql.org/docs/11/ecpg-dynamic.html Dynamic SQL page? The
very first line in each example immediately throws a syntax error: "syntax
error at or near "exec"". Could we get this updated or a bug fixed? I'm
migrating from SQL Server and really need to know how to migrate dynamic SQL
in existing code.

pgsql-docs by date:

Previous
From: PG Doc comments form
Date:
Subject: explanation for random_page_cost is outdated
Next
From: Alvaro Herrera
Date:
Subject: Re: 9.4. String Functions and Operators page does not document thatencode adds line breaks