1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-02 09:02:37 +03:00

Add code to pg_dump to use E'' strings when backslashes are used in dump

files.
This commit is contained in:
Bruce Momjian
2005-07-01 21:03:25 +00:00
parent 975368e267
commit 539bc9fc91
3 changed files with 41 additions and 11 deletions

View File

@ -5,7 +5,7 @@
* Implements the basic DB functions used by the archiver.
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_db.c,v 1.62 2005/06/21 20:45:44 tgl Exp $
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_db.c,v 1.63 2005/07/01 21:03:25 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -597,7 +597,6 @@ _sendSQLLine(ArchiveHandle *AH, char *qry, char *eos)
}
else
{
if (qry[pos] == '\\')
{
if (AH->sqlparse.lastChar == '\\')