mirror of
https://github.com/postgres/postgres.git
synced 2025-06-25 01:02:05 +03:00
Remove unnecessary escaping in C character literals
'\"' is more commonly written simply as '"'.
This commit is contained in:
@ -197,7 +197,7 @@ output_escaped_str(char *str, bool quoted)
|
||||
int i = 0;
|
||||
int len = strlen(str);
|
||||
|
||||
if (quoted && str[0] == '\"' && str[len - 1] == '\"') /* do not escape quotes
|
||||
if (quoted && str[0] == '"' && str[len - 1] == '"') /* do not escape quotes
|
||||
* at beginning and end
|
||||
* if quoted string */
|
||||
{
|
||||
@ -241,6 +241,6 @@ output_escaped_str(char *str, bool quoted)
|
||||
fputc(str[i], yyout);
|
||||
}
|
||||
|
||||
if (quoted && str[0] == '\"' && str[len] == '\"')
|
||||
if (quoted && str[0] == '"' && str[len] == '"')
|
||||
fputs("\"", yyout);
|
||||
}
|
||||
|
Reference in New Issue
Block a user