fix check_db_and_table_is_exist func when table name with special symbol
This commit is contained in:
4
deps/oblib/src/common/object/ob_object.cpp
vendored
4
deps/oblib/src/common/object/ob_object.cpp
vendored
@ -2221,7 +2221,7 @@ DEF_TO_STRING(ObHexEscapeSqlStr)
|
||||
int64_t buf_pos = 0;
|
||||
if (buf != NULL && buf_len > 0 && !str_.empty()) {
|
||||
const char *end = str_.ptr() + str_.length();
|
||||
if (lib::is_oracle_mode()) {
|
||||
if (do_oracle_mode_escape_) {
|
||||
for (const char *cur = str_.ptr(); cur < end && buf_pos < buf_len; ++cur) {
|
||||
if ('\'' == *cur) {
|
||||
//在oracle模式中,只处理单引号转义
|
||||
@ -2301,7 +2301,7 @@ int64_t ObHexEscapeSqlStr::get_extra_length() const
|
||||
int64_t ret_length = 0;
|
||||
if (!str_.empty()) {
|
||||
const char *end = str_.ptr() + str_.length();
|
||||
if (lib::is_oracle_mode()) {
|
||||
if (do_oracle_mode_escape_) {
|
||||
for (const char *cur = str_.ptr(); cur < end; ++cur) {
|
||||
if ('\'' == *cur) {
|
||||
++ret_length;
|
||||
|
||||
Reference in New Issue
Block a user