This is an automated email from the ASF dual-hosted git repository.
chenjinbao1989 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 82e1d7392e2 Fix compile errors for foreign
82e1d7392e2 is described below
commit 82e1d7392e26fc8e2a093f90e6fb58f50bdb3fcf
Author: Jinbao Chen <[email protected]>
AuthorDate: Fri Oct 3 22:48:03 2025 +0800
Fix compile errors for foreign
---
src/backend/foreign/foreign.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/backend/foreign/foreign.c b/src/backend/foreign/foreign.c
index 4e5e9a05896..0fadf562ee4 100644
--- a/src/backend/foreign/foreign.c
+++ b/src/backend/foreign/foreign.c
@@ -100,8 +100,10 @@ SeparateOutNumSegments(List **options)
if (strcmp(def->defname, "num_segments") == 0)
{
+ char *endp;
+
num_segments_str = defGetString(def);
- num_segments = pg_atoi(num_segments_str, sizeof(int32),
0);
+ num_segments = strtol(num_segments_str, &endp, 10);
if (num_segments <= 0)
{
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]