Don't treat DumpOptions->dump_inserts like a boolean
This has been an integer count since 7e413a0f82c8 so treat it explicitly like an integer. No backpatch since this is just cosmetic.
This commit is contained in:
parent
1c4e88e2fe
commit
2661a793ff
@ -71,7 +71,7 @@ typedef struct _restoreOptions
|
|||||||
char *use_role; /* Issue SET ROLE to this */
|
char *use_role; /* Issue SET ROLE to this */
|
||||||
int dropSchema;
|
int dropSchema;
|
||||||
int disable_dollar_quoting;
|
int disable_dollar_quoting;
|
||||||
int dump_inserts;
|
int dump_inserts; /* 0 = COPY, otherwise rows per INSERT */
|
||||||
int column_inserts;
|
int column_inserts;
|
||||||
int if_exists;
|
int if_exists;
|
||||||
int no_comments; /* Skip comments */
|
int no_comments; /* Skip comments */
|
||||||
|
@ -2254,7 +2254,7 @@ dumpTableData(Archive *fout, TableDataInfo *tdinfo)
|
|||||||
char *copyStmt;
|
char *copyStmt;
|
||||||
const char *copyFrom;
|
const char *copyFrom;
|
||||||
|
|
||||||
if (!dopt->dump_inserts)
|
if (dopt->dump_inserts == 0)
|
||||||
{
|
{
|
||||||
/* Dump/restore using COPY */
|
/* Dump/restore using COPY */
|
||||||
dumpFn = dumpTableData_copy;
|
dumpFn = dumpTableData_copy;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user