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 9734722197b Fix `contrib/formatter_fixedwidth/`. (#1476)
9734722197b is described below

commit 9734722197b85ad36c617b8e48e15002e4bbea98
Author: reshke <[email protected]>
AuthorDate: Sat Dec 6 13:24:57 2025 +0500

    Fix `contrib/formatter_fixedwidth/`. (#1476)
    
    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/formatter.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/include/access/formatter.h b/src/include/access/formatter.h
index 5cba56befdf..a176db9365b 100644
--- a/src/include/access/formatter.h
+++ b/src/include/access/formatter.h
@@ -83,7 +83,7 @@ typedef struct FormatterData
 #define FORMATTER_GET_ARG_LIST(fcinfo)       (((FormatterData*) 
fcinfo->context)->fmt_args)
 #define FORMATTER_GET_NUM_ARGS(fcinfo)       
(list_length(FORMATTER_GET_ARG_LIST(fcinfo)))
 #define FORMATTER_GET_NTH_ARG_KEY(fcinfo, n)  (((DefElem 
*)(list_nth(FORMATTER_GET_ARG_LIST(fcinfo),(n - 1))))->defname)
-#define FORMATTER_GET_NTH_ARG_VAL(fcinfo, n)  (((Value *)((DefElem 
*)(list_nth(FORMATTER_GET_ARG_LIST(fcinfo),(n - 1))))->arg)->val.str)
+#define FORMATTER_GET_NTH_ARG_VAL(fcinfo, n)  (((String *)((DefElem 
*)(list_nth(FORMATTER_GET_ARG_LIST(fcinfo),(n - 1))))->arg)->sval)
 #define FORMATTER_GET_EXTENCODING(fcinfo)     (((FormatterData*) 
fcinfo->context)->fmt_external_encoding)
 
 #define FORMATTER_SET_USER_CTX(fcinfo, p) \


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to