diff options
Diffstat (limited to 'src/include/commands/copy.h')
-rw-r--r-- | src/include/commands/copy.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/include/commands/copy.h b/src/include/commands/copy.h index 8972c6180d7..b3da3cb0be7 100644 --- a/src/include/commands/copy.h +++ b/src/include/commands/copy.h @@ -34,11 +34,11 @@ typedef enum CopyHeaderChoice * Represents where to save input processing errors. More values to be added * in the future. */ -typedef enum CopySaveErrorToChoice +typedef enum CopyOnErrorChoice { - COPY_SAVE_ERROR_TO_ERROR = 0, /* immediately throw errors */ - COPY_SAVE_ERROR_TO_NONE, /* ignore errors */ -} CopySaveErrorToChoice; + COPY_ON_ERROR_STOP = 0, /* immediately throw errors, default */ + COPY_ON_ERROR_IGNORE, /* ignore errors */ +} CopyOnErrorChoice; /* * A struct to hold COPY options, in a parsed form. All of these are related @@ -72,7 +72,7 @@ typedef struct CopyFormatOptions bool force_null_all; /* FORCE_NULL *? */ bool *force_null_flags; /* per-column CSV FN flags */ bool convert_selectively; /* do selective binary conversion? */ - CopySaveErrorToChoice save_error_to; /* where to save error information */ + CopyOnErrorChoice on_error; /* what to do when error happened */ List *convert_select; /* list of column names (can be NIL) */ } CopyFormatOptions; |