mirror of
https://github.com/postgres/postgres.git
synced 2025-06-26 12:21:12 +03:00
Remove unnecessary escaping in C character literals
'\"' is more commonly written simply as '"'.
This commit is contained in:
@ -124,7 +124,7 @@ _outToken(StringInfo str, const char *s)
|
||||
*/
|
||||
/* These characters only need to be quoted at the start of the string */
|
||||
if (*s == '<' ||
|
||||
*s == '\"' ||
|
||||
*s == '"' ||
|
||||
isdigit((unsigned char) *s) ||
|
||||
((*s == '+' || *s == '-') &&
|
||||
(isdigit((unsigned char) s[1]) || s[1] == '.')))
|
||||
|
@ -245,7 +245,7 @@ nodeTokenType(char *token, int length)
|
||||
retval = RIGHT_PAREN;
|
||||
else if (*token == '{')
|
||||
retval = LEFT_BRACE;
|
||||
else if (*token == '\"' && length > 1 && token[length - 1] == '\"')
|
||||
else if (*token == '"' && length > 1 && token[length - 1] == '"')
|
||||
retval = T_String;
|
||||
else if (*token == 'b')
|
||||
retval = T_BitString;
|
||||
|
Reference in New Issue
Block a user