pg.ddx.io pgsql-docs@postgresql.org mailing list archive
help / color / mirror / Atom feedthoroughly broken examples on the Dynamic SQL page
2+ messages / 2 participants
[nested] [flat]
* thoroughly broken examples on the Dynamic SQL page
@ 2020-02-27 15:52 PG Doc comments form <noreply@postgresql.org>
2020-02-28 09:24 ` Re: thoroughly broken examples on the Dynamic SQL page Laurenz Albe <laurenz.albe@cybertec.at>
0 siblings, 1 reply; 2+ messages in thread
From: PG Doc comments form @ 2020-02-27 15:52 UTC (permalink / raw)
To: pgsql-docs@lists.postgresql.org; +Cc: jacquesdereims@gmail.com
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.
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: thoroughly broken examples on the Dynamic SQL page
2020-02-27 15:52 thoroughly broken examples on the Dynamic SQL page PG Doc comments form <noreply@postgresql.org>
@ 2020-02-28 09:24 ` Laurenz Albe <laurenz.albe@cybertec.at>
0 siblings, 0 replies; 2+ messages in thread
From: Laurenz Albe @ 2020-02-28 09:24 UTC (permalink / raw)
To: jacquesdereims@gmail.com; pgsql-docs@lists.postgresql.org
On Thu, 2020-02-27 at 15:52 +0000, PG Doc comments form wrote:
> 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.
You are confused.
This page is about embedded SQL in C.
If you want to write a stored procedure or function that uses dynamic SQL,
read https://www.postgresql.org/docs/current/plpgsql-statements.html#PLPGSQL-STATEMENTS-EXECUTING-DYN
Yours,
Laurenz Albe
--
Cybertec | https://www.cybertec-postgresql.com
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2020-02-28 09:24 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-02-27 15:52 thoroughly broken examples on the Dynamic SQL page PG Doc comments form <noreply@postgresql.org>
2020-02-28 09:24 ` Laurenz Albe <laurenz.albe@cybertec.at>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox