mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Fix ill-advised placement of PGRES_COPY_BOTH enum value.
It must be added at the end of the ExecStatusType enum to avoid ABI breakage compared to previous libpq versions. Noted by Magnus.
This commit is contained in:
@ -35,10 +35,10 @@ char *const pgresStatus[] = {
|
||||
"PGRES_TUPLES_OK",
|
||||
"PGRES_COPY_OUT",
|
||||
"PGRES_COPY_IN",
|
||||
"PGRES_COPY_BOTH",
|
||||
"PGRES_BAD_RESPONSE",
|
||||
"PGRES_NONFATAL_ERROR",
|
||||
"PGRES_FATAL_ERROR"
|
||||
"PGRES_FATAL_ERROR",
|
||||
"PGRES_COPY_BOTH"
|
||||
};
|
||||
|
||||
/*
|
||||
|
@ -85,11 +85,11 @@ typedef enum
|
||||
* contains the result tuples */
|
||||
PGRES_COPY_OUT, /* Copy Out data transfer in progress */
|
||||
PGRES_COPY_IN, /* Copy In data transfer in progress */
|
||||
PGRES_COPY_BOTH, /* Copy In/Out data transfer in progress */
|
||||
PGRES_BAD_RESPONSE, /* an unexpected response was recv'd from the
|
||||
* backend */
|
||||
PGRES_NONFATAL_ERROR, /* notice or warning message */
|
||||
PGRES_FATAL_ERROR /* query failed */
|
||||
PGRES_FATAL_ERROR, /* query failed */
|
||||
PGRES_COPY_BOTH /* Copy In/Out data transfer in progress */
|
||||
} ExecStatusType;
|
||||
|
||||
typedef enum
|
||||
|
Reference in New Issue
Block a user