Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 4230152

Browse files
committed
Fix COPY FROM deparse, forgotten comma for FORCE_NULL etc.
1 parent 1950fab commit 4230152

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contrib/postgres_fdw/deparse.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3229,7 +3229,7 @@ deparseCopyFromSql(StringInfo buf, Relation rel, CopyState cstate,
32293229
{
32303230
bool first = true;
32313231

3232-
appendStringInfoString(buf, " FORCE NOT NULL (");
3232+
appendStringInfoString(buf, ", FORCE_NOT_NULL (");
32333233
foreach(cur, cstate->force_notnull)
32343234
{
32353235
char *attname = strVal(lfirst(cur));
@@ -3246,7 +3246,7 @@ deparseCopyFromSql(StringInfo buf, Relation rel, CopyState cstate,
32463246
{
32473247
bool first = true;
32483248

3249-
appendStringInfoString(buf, " FORCE NULL (");
3249+
appendStringInfoString(buf, ", FORCE_NULL (");
32503250
foreach(cur, cstate->force_null)
32513251
{
32523252
char *attname = strVal(lfirst(cur));

0 commit comments

Comments
 (0)