mirror of
https://github.com/postgres/postgres.git
synced 2025-07-11 10:01:57 +03:00
Remove unnecessary escaping in C character literals
'\"' is more commonly written simply as '"'.
This commit is contained in:
@ -130,7 +130,7 @@ fmtId(const char *rawid)
|
||||
}
|
||||
else
|
||||
{
|
||||
appendPQExpBufferChar(id_return, '\"');
|
||||
appendPQExpBufferChar(id_return, '"');
|
||||
for (cp = rawid; *cp; cp++)
|
||||
{
|
||||
/*
|
||||
@ -138,11 +138,11 @@ fmtId(const char *rawid)
|
||||
* double double-quote per SQL99. Before, we put in a
|
||||
* backslash/double-quote pair. - thomas 2000-08-05
|
||||
*/
|
||||
if (*cp == '\"')
|
||||
appendPQExpBufferChar(id_return, '\"');
|
||||
if (*cp == '"')
|
||||
appendPQExpBufferChar(id_return, '"');
|
||||
appendPQExpBufferChar(id_return, *cp);
|
||||
}
|
||||
appendPQExpBufferChar(id_return, '\"');
|
||||
appendPQExpBufferChar(id_return, '"');
|
||||
}
|
||||
|
||||
return id_return->data;
|
||||
|
Reference in New Issue
Block a user