[cp]: fix 4 bugs for NO_BACKSLASH_ESCAPES mode.
This commit is contained in:
5
deps/oblib/src/common/object/ob_object.cpp
vendored
5
deps/oblib/src/common/object/ob_object.cpp
vendored
@ -1395,6 +1395,11 @@ DEF_TO_STRING(ObHexEscapeSqlStr)
|
||||
buf[buf_pos++] = *cur;
|
||||
}
|
||||
}
|
||||
} else if (skip_escape_) {
|
||||
// do not escape_ while in NO_BACKSLASH_ESCAPES mode
|
||||
for (const char *cur = str_.ptr(); cur < end && buf_pos < buf_len; ++cur) {
|
||||
buf[buf_pos++] = *cur;
|
||||
}
|
||||
} else {
|
||||
for (const char* cur = str_.ptr(); cur < end && buf_pos < buf_len; ++cur) {
|
||||
switch (*cur) {
|
||||
|
||||
Reference in New Issue
Block a user