diff options
| author | Bruce Momjian | 2005-07-02 17:01:59 +0000 |
|---|---|---|
| committer | Bruce Momjian | 2005-07-02 17:01:59 +0000 |
| commit | 74b49a81294b2943179078272bc3413b33d16e6f (patch) | |
| tree | 1f610742e7fffbce204c4a95df8163d98bcaba6f /src/include/c.h | |
| parent | 654efe6aaa65d4bb53a3c888df1143558a1034ad (diff) | |
Add E'' to internally created SQL strings that contain backslashes.
Improve code clarity by using macros for E'' processing.
Diffstat (limited to 'src/include/c.h')
| -rw-r--r-- | src/include/c.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/include/c.h b/src/include/c.h index 202e45271e..4567e2102d 100644 --- a/src/include/c.h +++ b/src/include/c.h @@ -12,7 +12,7 @@ * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/c.h,v 1.186 2005/06/28 05:09:04 tgl Exp $ + * $PostgreSQL: pgsql/src/include/c.h,v 1.187 2005/07/02 17:01:52 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -479,6 +479,8 @@ typedef NameData *Name; #define NameStr(name) ((name).data) +#define SQL_STR_DOUBLE(ch) ((ch) == '\'' || (ch) == '\\') +#define ESCAPE_STRING_SYNTAX 'E' /* ---------------------------------------------------------------- * Section 4: IsValid macros for system types |
