diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2006-06-01 00:15:36 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2006-06-01 00:15:36 +0000 |
commit | 6178762fcf02f5f07099ff2277f8cdd82151cd0e (patch) | |
tree | 5062f78532e80a62014ccf43ac9d53164913136e /src/bin/psql/common.h | |
parent | 2703007501e883f6f9968c274cf118f6cf362ebd (diff) | |
download | postgresql-6178762fcf02f5f07099ff2277f8cdd82151cd0e.tar.gz |
Fix up hack to suppress escape_string_warning so that it actually works
and there's only one place that's a kluge, ie, appendStringLiteralConn.
Note that pg_dump itself doesn't use appendStringLiteralConn, so its
behavior is not affected; only the other utility programs care.
Diffstat (limited to 'src/bin/psql/common.h')
-rw-r--r-- | src/bin/psql/common.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/bin/psql/common.h b/src/bin/psql/common.h index 0d0f7ad5ed..4cf5da0bf3 100644 --- a/src/bin/psql/common.h +++ b/src/bin/psql/common.h @@ -3,7 +3,7 @@ * * Copyright (c) 2000-2006, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/bin/psql/common.h,v 1.48 2006/05/31 11:02:42 momjian Exp $ + * $PostgreSQL: pgsql/src/bin/psql/common.h,v 1.49 2006/06/01 00:15:36 tgl Exp $ */ #ifndef COMMON_H #define COMMON_H @@ -23,12 +23,6 @@ #define atooid(x) ((Oid) strtoul((x), NULL, 10)) /* - * We use this to prefix strings with E'' that we know are already safe, - * so we don't get an escape_string_warning. - */ -#define NEED_E_STR(str) ((strchr(str, '\\') && !standard_strings()) ? ESCAPE_STRING_SYNTAX : ' ') - -/* * Safer versions of some standard C library functions. If an * out-of-memory condition occurs, these functions will bail out * safely; therefore, their return value is guaranteed to be non-NULL. |