Fix flaky test exttab1
The flaky case happens when select an external table with option
"fill missing fields". By gdb the qe, this value is not false
on QE sometimes. When ProcessCopyOptions, we use intVal(defel->arg)
to parse the boolean value, which is not correct. Using defGetBoolean
to replace it.
@@ -1521,7 +1521,7 @@ ProcessCopyOptions(CopyState cstate,
ereport(ERROR,
(errcode(ERRCODE_SYNTAX_ERROR),
errmsg("conflicting or redundant options")));
- cstate->fill_missing = intVal(defel->arg);
+ cstate->fill_missing = defGetBoolean(defel);
}
else if (strcmp(defel->defname, "newline") == 0)
{
