mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
copy: update docs for FORCE_NULL and FORCE_NOT_NULL combination
Also update regression tests Patch by Michael Paquier
This commit is contained in:
@ -264,11 +264,6 @@ file_fdw_validator(PG_FUNCTION_ARGS)
|
||||
(errcode(ERRCODE_SYNTAX_ERROR),
|
||||
errmsg("conflicting or redundant options"),
|
||||
errhint("option \"force_not_null\" supplied more than once for a column")));
|
||||
if(force_null)
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_SYNTAX_ERROR),
|
||||
errmsg("conflicting or redundant options"),
|
||||
errhint("option \"force_not_null\" cannot be used together with \"force_null\"")));
|
||||
force_not_null = def;
|
||||
/* Don't care what the value is, as long as it's a legal boolean */
|
||||
(void) defGetBoolean(def);
|
||||
@ -281,11 +276,6 @@ file_fdw_validator(PG_FUNCTION_ARGS)
|
||||
(errcode(ERRCODE_SYNTAX_ERROR),
|
||||
errmsg("conflicting or redundant options"),
|
||||
errhint("option \"force_null\" supplied more than once for a column")));
|
||||
if(force_not_null)
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_SYNTAX_ERROR),
|
||||
errmsg("conflicting or redundant options"),
|
||||
errhint("option \"force_null\" cannot be used together with \"force_not_null\"")));
|
||||
force_null = def;
|
||||
(void) defGetBoolean(def);
|
||||
}
|
||||
|
Reference in New Issue
Block a user