Index: fe-exec.c =================================================================== RCS file: /home/projects/pgsql/cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v retrieving revision 1.110 diff -u -r1.110 fe-exec.c --- fe-exec.c 2001/09/07 22:02:32 1.110 +++ fe-exec.c 2001/09/11 14:20:10 @@ -59,7 +59,7 @@ /* --------------- * Escaping arbitrary strings to get valid SQL strings/identifiers. * - * Replaces "\\" with "\\\\", "\0" with "\\0", and "'" with "''". + * Replaces "\\" with "\\\\" and "'" with "''". * length is the length of the buffer pointed to by * from. The buffer at to must be at least 2*length + 1 characters * long. A terminating NUL character is written. @@ -75,13 +75,6 @@ while (remaining > 0) { switch (*source) { - case '\0': - *target = '\\'; - target++; - *target = '0'; - /* target and remaining are updated below. */ - break; - case '\\': *target = '\\'; target++;