From 5d8cfdab29df8ae53f7e817652f62187fd4f6994 Mon Sep 17 00:00:00 2001 From: xiong_xjun Date: Mon, 16 Aug 2021 19:57:46 +0800 Subject: [PATCH] fix file_fdw bug, for format option --- contrib/file_fdw/file_fdw.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contrib/file_fdw/file_fdw.cpp b/contrib/file_fdw/file_fdw.cpp index 2e2e5e39b..601d12a72 100644 --- a/contrib/file_fdw/file_fdw.cpp +++ b/contrib/file_fdw/file_fdw.cpp @@ -244,8 +244,10 @@ Datum file_fdw_validator(PG_FUNCTION_ARGS) if (strcasecmp(fmt, "fixed") == 0) { ereport(ERROR, (errcode(ERRCODE_SYNTAX_ERROR), errmsg("file_fdw doesn't support fixed option in format"))); } - } else other_options = lappend(other_options, def); + } else { + other_options = lappend(other_options, def); + } } /*