mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
- Change some line endings from CRLF to LF
modified: storage/connect/json.cpp storage/connect/xobject.cpp
This commit is contained in:
@@ -355,20 +355,20 @@ bool STRING::Append_quoted(PSZ s)
|
||||
|
||||
if (s) for (char *p = s; !b && *p; p++)
|
||||
switch (*p) {
|
||||
case '\'':
|
||||
case '\\':
|
||||
case '\t':
|
||||
case '\n':
|
||||
case '\r':
|
||||
case '\b':
|
||||
case '\f': b |= Append('\\');
|
||||
// passthru
|
||||
default:
|
||||
b |= Append(*p);
|
||||
break;
|
||||
} // endswitch *p
|
||||
|
||||
return (b |= Append('\''));
|
||||
case '\'':
|
||||
case '\\':
|
||||
case '\t':
|
||||
case '\n':
|
||||
case '\r':
|
||||
case '\b':
|
||||
case '\f': b |= Append('\\');
|
||||
// passthru
|
||||
default:
|
||||
b |= Append(*p);
|
||||
break;
|
||||
} // endswitch *p
|
||||
|
||||
return (b |= Append('\''));
|
||||
} // end of Append_quoted
|
||||
|
||||
/***********************************************************************/
|
||||
|
Reference in New Issue
Block a user