From e85bcc754631499a69a4c96ab182880b5a749638 Mon Sep 17 00:00:00 2001 From: Siyuan Huang <73871299+kysshsy@users.noreply.github.com> Date: Tue, 24 Sep 2024 00:33:43 +0800 Subject: [PATCH] include commands/prepare.h (#1873) --- pgrx-pg-sys/include/pg12.h | 1 + pgrx-pg-sys/include/pg13.h | 1 + pgrx-pg-sys/include/pg14.h | 1 + pgrx-pg-sys/include/pg15.h | 1 + pgrx-pg-sys/include/pg16.h | 1 + pgrx-pg-sys/include/pg17.h | 1 + .../tests/compile-fail/escaping-spiclient-1209-prep-stmt.stderr | 2 +- 7 files changed, 7 insertions(+), 1 deletion(-) diff --git a/pgrx-pg-sys/include/pg12.h b/pgrx-pg-sys/include/pg12.h index ab9f89a3e..999399458 100644 --- a/pgrx-pg-sys/include/pg12.h +++ b/pgrx-pg-sys/include/pg12.h @@ -71,6 +71,7 @@ #include "commands/defrem.h" #include "commands/event_trigger.h" #include "commands/explain.h" +#include "commands/prepare.h" #include "commands/proclang.h" #include "commands/seclabel.h" #include "commands/tablespace.h" diff --git a/pgrx-pg-sys/include/pg13.h b/pgrx-pg-sys/include/pg13.h index de9f48db1..9ebfbd1ff 100644 --- a/pgrx-pg-sys/include/pg13.h +++ b/pgrx-pg-sys/include/pg13.h @@ -71,6 +71,7 @@ #include "commands/defrem.h" #include "commands/event_trigger.h" #include "commands/explain.h" +#include "commands/prepare.h" #include "commands/proclang.h" #include "commands/seclabel.h" #include "commands/tablespace.h" diff --git a/pgrx-pg-sys/include/pg14.h b/pgrx-pg-sys/include/pg14.h index 0fa99a897..1d494ee05 100644 --- a/pgrx-pg-sys/include/pg14.h +++ b/pgrx-pg-sys/include/pg14.h @@ -71,6 +71,7 @@ #include "commands/defrem.h" #include "commands/event_trigger.h" #include "commands/explain.h" +#include "commands/prepare.h" #include "commands/proclang.h" #include "commands/seclabel.h" #include "commands/tablespace.h" diff --git a/pgrx-pg-sys/include/pg15.h b/pgrx-pg-sys/include/pg15.h index 4675f8e64..17069710e 100644 --- a/pgrx-pg-sys/include/pg15.h +++ b/pgrx-pg-sys/include/pg15.h @@ -72,6 +72,7 @@ #include "commands/defrem.h" #include "commands/event_trigger.h" #include "commands/explain.h" +#include "commands/prepare.h" #include "commands/proclang.h" #include "commands/seclabel.h" #include "commands/tablespace.h" diff --git a/pgrx-pg-sys/include/pg16.h b/pgrx-pg-sys/include/pg16.h index 2a78b8135..a7d511300 100644 --- a/pgrx-pg-sys/include/pg16.h +++ b/pgrx-pg-sys/include/pg16.h @@ -73,6 +73,7 @@ #include "commands/defrem.h" #include "commands/event_trigger.h" #include "commands/explain.h" +#include "commands/prepare.h" #include "commands/proclang.h" #include "commands/seclabel.h" #include "commands/tablespace.h" diff --git a/pgrx-pg-sys/include/pg17.h b/pgrx-pg-sys/include/pg17.h index b5e88646d..1eb85efc7 100644 --- a/pgrx-pg-sys/include/pg17.h +++ b/pgrx-pg-sys/include/pg17.h @@ -73,6 +73,7 @@ #include "commands/defrem.h" #include "commands/event_trigger.h" #include "commands/explain.h" +#include "commands/prepare.h" #include "commands/proclang.h" #include "commands/seclabel.h" #include "commands/tablespace.h" diff --git a/pgrx-tests/tests/compile-fail/escaping-spiclient-1209-prep-stmt.stderr b/pgrx-tests/tests/compile-fail/escaping-spiclient-1209-prep-stmt.stderr index 483312788..e2af44afe 100644 --- a/pgrx-tests/tests/compile-fail/escaping-spiclient-1209-prep-stmt.stderr +++ b/pgrx-tests/tests/compile-fail/escaping-spiclient-1209-prep-stmt.stderr @@ -4,5 +4,5 @@ error: lifetime may not live long enough 8 | let prepared = { Spi::connect(|c| c.prepare(q, None))? }; | -- ^^^^^^^^^^^^^^^^^^ returning this value requires that `'1` must outlive `'2` | || - | |return type of closure is std::result::Result, pgrx::spi::SpiError> + | |return type of closure is std::result::Result, pgrx::spi::SpiError> | has type `SpiClient<'1>`