mirror of
https://github.com/postgres/postgres.git
synced 2025-07-09 22:41:56 +03:00
Use E'' strings internally only when standard_conforming_strings =
'off'. This allows pg_dump output with standard_conforming_strings = 'on' to generate proper strings that can be loaded into other databases without the backslash doubling we typically do. I have added the dumping of the standard_conforming_strings value to pg_dump. I also added standard backslash handling for plpgsql.
This commit is contained in:
@ -3,7 +3,7 @@
|
||||
*
|
||||
* Copyright (c) 2000-2006, PostgreSQL Global Development Group
|
||||
*
|
||||
* $PostgreSQL: pgsql/src/bin/psql/describe.c,v 1.134 2006/04/26 23:15:45 momjian Exp $
|
||||
* $PostgreSQL: pgsql/src/bin/psql/describe.c,v 1.135 2006/05/26 23:48:54 momjian Exp $
|
||||
*/
|
||||
#include "postgres_fe.h"
|
||||
#include "describe.h"
|
||||
@ -1867,7 +1867,7 @@ processNamePattern(PQExpBuffer buf, const char *pattern,
|
||||
appendPQExpBuffer(&namebuf, "\\\\");
|
||||
|
||||
/* Ensure chars special to string literals are passed properly */
|
||||
if (SQL_STR_DOUBLE(*cp))
|
||||
if (SQL_STR_DOUBLE(*cp, true))
|
||||
appendPQExpBufferChar(&namebuf, *cp);
|
||||
|
||||
i = PQmblen(cp, pset.encoding);
|
||||
|
Reference in New Issue
Block a user