postgresql/src
Bruce Momjian 69d4299e3e This patch removes the initialization of ri in loop in
quote_postgres(...) in ecpglib.c.

The code in CVS reads:

quote_postgres(char *arg, int lineno)
{
 char    *res = (char *) ecpg_alloc(2 * strlen(arg) + 3, lineno);
 int   i,
    ri = 0;

 if (!res)
  return (res);

 res[ri++] = '\'';
 for (i = 0, ri=0; arg[i]; i++, ri++)
 {
  switch (arg[i])
  {
   case '\'':
    res[ri++] = '\'';
    break;
   case '\\':
    res[ri++] = '\\';
    break;
   default:
    ;
  }

The problem here is that ri is reset to 0, thus overwriting the initial
quote.

Stephen Birch
2000-01-08 22:58:03 +00:00
..
backend Need defense against oversize index entries in btree CREATE INDEX, 2000-01-08 21:24:49 +00:00
bin Update pg_dumpall for new psql format. 2000-01-06 21:16:18 +00:00
corba
data
include Modify PageIsEmpty and PageGetMaxOffsetNumber macros to behave sanely 2000-01-08 21:59:55 +00:00
interfaces This patch removes the initialization of ri in loop in 2000-01-08 22:58:03 +00:00
lextest
makefiles I have done the QNX4 port with the current source tree. The number of 1999-12-16 01:25:23 +00:00
pl Fix it's and its to be correct. 2000-01-05 18:23:54 +00:00
template I have done the QNX4 port with the current source tree. The number of 1999-12-16 01:25:23 +00:00
test Clean up header for uniform appearance throughout tests. 2000-01-06 06:41:55 +00:00
tools
tutorial
utils
win32 Move ipc patch into README.NT. 1999-12-29 10:28:00 +00:00
config.guess I have done the QNX4 port with the current source tree. The number of 1999-12-16 01:25:23 +00:00
config.sub I have done the QNX4 port with the current source tree. The number of 1999-12-16 01:25:23 +00:00
configure Allow --with-mb=SQL_ASCII 1999-12-30 08:33:49 +00:00
configure.in Allow --with-mb=SQL_ASCII 1999-12-30 08:33:49 +00:00
DEVELOPERS
GNUmakefile.in
install-sh
Makefile
Makefile.global.in New LDOUT makefile variable for QNX os. 1999-12-13 22:35:27 +00:00
Makefile.shlib
win32.mak