diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2024-04-05 18:23:10 +0200 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2024-04-05 18:23:10 +0200 |
commit | b8b37e41ba4aae1e79dcfaeb9eb0fd7549773ff5 (patch) | |
tree | a4def74281eb134cf5e4f94d676f59817dbf9cdb /contrib/postgres_fdw/connection.c | |
parent | 8e392595e5619734db707553e8f72dfacf9ab86c (diff) | |
download | postgresql-b8b37e41ba4aae1e79dcfaeb9eb0fd7549773ff5.tar.gz postgresql-b8b37e41ba4aae1e79dcfaeb9eb0fd7549773ff5.zip |
Make libpqsrv_cancel's return const char *, not char *
Per headerscheck's C++ check.
Discussion: https://postgr.es/m/372769.1712179784@sss.pgh.pa.us
Diffstat (limited to 'contrib/postgres_fdw/connection.c')
-rw-r--r-- | contrib/postgres_fdw/connection.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/postgres_fdw/connection.c b/contrib/postgres_fdw/connection.c index e4595926641..603e043af40 100644 --- a/contrib/postgres_fdw/connection.c +++ b/contrib/postgres_fdw/connection.c @@ -1332,7 +1332,7 @@ pgfdw_cancel_query(PGconn *conn) static bool pgfdw_cancel_query_begin(PGconn *conn, TimestampTz endtime) { - char *errormsg = libpqsrv_cancel(conn, endtime); + const char *errormsg = libpqsrv_cancel(conn, endtime); if (errormsg != NULL) ereport(WARNING, |