mirror of
https://github.com/postgres/postgres.git
synced 2025-07-08 11:42:09 +03:00
Hi, all,
This is the patch for the final bit. Sorry that it's separate. Cheers... MikeA
This commit is contained in:
@ -21,7 +21,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.127 1999/12/27 15:42:43 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.128 1999/12/27 15:45:04 momjian Exp $
|
||||||
*
|
*
|
||||||
* Modifications - 6/10/96 - dave@bensoft.com - version 1.13.dhb
|
* Modifications - 6/10/96 - dave@bensoft.com - version 1.13.dhb
|
||||||
*
|
*
|
||||||
@ -1700,7 +1700,7 @@ getTables(int *numTables, FuncInfo *finfo, int numFuncs)
|
|||||||
int tgnargs = atoi(PQgetvalue(res2, i2, i_tgnargs));
|
int tgnargs = atoi(PQgetvalue(res2, i2, i_tgnargs));
|
||||||
const char *tgargs = PQgetvalue(res2, i2, i_tgargs);
|
const char *tgargs = PQgetvalue(res2, i2, i_tgargs);
|
||||||
const char *p;
|
const char *p;
|
||||||
char farg[MAX_QUERY_SIZE];
|
PQExpBuffer farg = createPQExpBuffer();
|
||||||
int findx;
|
int findx;
|
||||||
|
|
||||||
for (findx = 0; findx < numFuncs; findx++)
|
for (findx = 0; findx < numFuncs; findx++)
|
||||||
@ -1786,14 +1786,13 @@ getTables(int *numTables, FuncInfo *finfo, int numFuncs)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
p--;
|
p--;
|
||||||
for (s = tgargs, d = &(farg[0]); s < p;)
|
for (s = tgargs; s < p;)
|
||||||
{
|
{
|
||||||
if (*s == '\'')
|
if (*s == '\'')
|
||||||
*d++ = '\\';
|
appendPQExpBufferChar(farg, '\\');
|
||||||
*d++ = *s++;
|
appendPQExpBufferChar(farg, *s++);
|
||||||
}
|
}
|
||||||
*d = 0;
|
appendPQExpBuffer(query, "'%s'%s", farg->data,
|
||||||
appendPQExpBuffer(query, "'%s'%s", farg,
|
|
||||||
(findx < tgnargs - 1) ? ", " : "");
|
(findx < tgnargs - 1) ? ", " : "");
|
||||||
tgargs = p + 4;
|
tgargs = p + 4;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user