You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudberry.apache.org by re...@apache.org on 2025/12/21 18:24:03 UTC
(cloudberry) branch cbdb-postgres-merge updated: Fix `contrib/extprotocol`
This is an automated email from the ASF dual-hosted git repository.
reshke pushed a commit to branch cbdb-postgres-merge
in repository https://gitbox.apache.org/repos/asf/cloudberry.git
The following commit(s) were added to refs/heads/cbdb-postgres-merge by this push:
new 8f425b64b6e Fix `contrib/extprotocol`
8f425b64b6e is described below
commit 8f425b64b6efea7764e51b4d7c0e9dbceece011b
Author: reshke <re...@double.cloud>
AuthorDate: Sun Dec 21 18:23:29 2025 +0000
Fix `contrib/extprotocol`
After REL_16 rebase, this no longer compiles due to
https://git.postgresql.org/cgit/postgresql.git/commit/?id=639a86e36aaecb84faaf941dcd0b183ba0aba9e9
Fix by enforsing new kernel coding practice
---
src/include/access/extprotocol.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/include/access/extprotocol.h b/src/include/access/extprotocol.h
index ba3cce637bc..cafc306702b 100644
--- a/src/include/access/extprotocol.h
+++ b/src/include/access/extprotocol.h
@@ -89,7 +89,7 @@ typedef ExtProtocolValidatorData *ExtProtocolValidator;
#define EXTPROTOCOL_VALIDATOR_GET_URL_LIST(fcinfo) (((ExtProtocolValidatorData*) fcinfo->context)->url_list)
#define EXTPROTOCOL_VALIDATOR_GET_NUM_URLS(fcinfo) (list_length(((ExtProtocolValidatorData*) fcinfo->context)->url_list))
-#define EXTPROTOCOL_VALIDATOR_GET_NTH_URL(fcinfo, n) (((Value *)(list_nth(EXTPROTOCOL_VALIDATOR_GET_URL_LIST(fcinfo),(n - 1))))->val.str)
+#define EXTPROTOCOL_VALIDATOR_GET_NTH_URL(fcinfo, n) (((String *)(list_nth(EXTPROTOCOL_VALIDATOR_GET_URL_LIST(fcinfo),(n - 1))))->sval)
#define EXTPROTOCOL_VALIDATOR_GET_DIRECTION(fcinfo) (((ExtProtocolValidatorData*) fcinfo->context)->direction)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cloudberry.apache.org
For additional commands, e-mail: commits-help@cloudberry.apache.org