mirror of
https://github.com/postgres/postgres.git
synced 2025-07-08 11:42:09 +03:00
Remove unnecessary escaping in C character literals
'\"' is more commonly written simply as '"'.
This commit is contained in:
@ -515,7 +515,7 @@ ArrayCount(const char *str, int *dim, char typdelim)
|
||||
errmsg("malformed array literal: \"%s\"", str),
|
||||
errdetail("Unexpected end of input.")));
|
||||
break;
|
||||
case '\"':
|
||||
case '"':
|
||||
|
||||
/*
|
||||
* A quote must be after a level start, after a quoted
|
||||
@ -799,7 +799,7 @@ ReadArrayStr(char *arrayStr,
|
||||
dstendptr = dstptr;
|
||||
hasquoting = true; /* can't be a NULL marker */
|
||||
break;
|
||||
case '\"':
|
||||
case '"':
|
||||
in_quotes = !in_quotes;
|
||||
if (in_quotes)
|
||||
leadingspace = false;
|
||||
|
Reference in New Issue
Block a user