Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6354986

Browse files
committed
Hi, all,
This is the patch for the final bit. Sorry that it's separate.Cheers...MikeA
1 parent24a0f02 commit6354986

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

‎src/bin/pg_dump/pg_dump.c

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
*
2222
*
2323
* IDENTIFICATION
24-
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.127 1999/12/27 15:42:43 momjian Exp $
24+
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.128 1999/12/27 15:45:04 momjian Exp $
2525
*
2626
* Modifications - 6/10/96 - dave@bensoft.com - version 1.13.dhb
2727
*
@@ -1700,7 +1700,7 @@ getTables(int *numTables, FuncInfo *finfo, int numFuncs)
17001700
inttgnargs=atoi(PQgetvalue(res2,i2,i_tgnargs));
17011701
constchar*tgargs=PQgetvalue(res2,i2,i_tgargs);
17021702
constchar*p;
1703-
charfarg[MAX_QUERY_SIZE];
1703+
PQExpBufferfarg=createPQExpBuffer();
17041704
intfindx;
17051705

17061706
for (findx=0;findx<numFuncs;findx++)
@@ -1786,14 +1786,13 @@ getTables(int *numTables, FuncInfo *finfo, int numFuncs)
17861786
break;
17871787
}
17881788
p--;
1789-
for (s=tgargs,d=&(farg[0]);s<p;)
1789+
for (s=tgargs;s<p;)
17901790
{
17911791
if (*s=='\'')
1792-
*d++='\\';
1793-
*d++=*s++;
1792+
appendPQExpBufferChar(farg,'\\');
1793+
appendPQExpBufferChar(farg,*s++);
17941794
}
1795-
*d=0;
1796-
appendPQExpBuffer(query,"'%s'%s",farg,
1795+
appendPQExpBuffer(query,"'%s'%s",farg->data,
17971796
(findx<tgnargs-1) ?", " :"");
17981797
tgargs=p+4;
17991798
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp