Skip to content

Commit 00bb61a

Browse files
author
Rahul Parande
committed
Fixed variable declaration in pg_dump.c
Signed-off-by: Rahul Parande <[email protected]>
1 parent e443af6 commit 00bb61a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bin/pg_dump/pg_dump.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15822,7 +15822,6 @@ dumpTable(Archive *fout, const TableInfo *tbinfo)
1582215822
free(namecopy);
1582315823
}
1582415824

15825-
1582615825
/*
1582715826
* Create a dummy AS clause for a view. This is used when the real view
1582815827
* definition has to be postponed because of circular dependencies.
@@ -15878,6 +15877,7 @@ createViewAsClause(Archive *fout, const TableInfo *tbinfo)
1587815877
{
1587915878
PQExpBuffer query = createPQExpBuffer();
1588015879
PQExpBuffer result = createPQExpBuffer();
15880+
PQExpBuffer dummyResult = createPQExpBuffer();
1588115881
PGresult *res;
1588215882
int len;
1588315883

@@ -15910,7 +15910,7 @@ createViewAsClause(Archive *fout, const TableInfo *tbinfo)
1591015910
destroyPQExpBuffer(query);
1591115911

1591215912
/* Use createDummyViewAsClause to generate a compatible structure */
15913-
PQExpBuffer dummyResult = createDummyViewAsClause(fout, tbinfo);
15913+
dummyResult = createDummyViewAsClause(fout, tbinfo);
1591415914
appendPQExpBuffer(result, "%s", dummyResult->data);
1591515915
destroyPQExpBuffer(dummyResult);
1591615916

0 commit comments

Comments
 (0)