change compat_mode default from MYSQL to INVALID
This commit is contained in:
@ -886,6 +886,7 @@ TEST_F(TestJsonBase, test_get_allocator)
|
||||
|
||||
TEST_F(TestJsonBase, test_seek)
|
||||
{
|
||||
set_compat_mode(lib::Worker::CompatMode::MYSQL);
|
||||
ObArenaAllocator allocator(ObModIds::TEST);
|
||||
ObIJsonBase *j_tree = NULL;
|
||||
ObIJsonBase *j_bin = NULL;
|
||||
|
||||
@ -361,6 +361,7 @@ TEST_F(TestJsonBin, test_bin_lookup)
|
||||
|
||||
TEST_F(TestJsonBin, test_wrapper_to_string_object)
|
||||
{
|
||||
set_compat_mode(lib::Worker::CompatMode::MYSQL);
|
||||
// json text 转 json tree
|
||||
common::ObString json_text("{ \"greeting\" : \"Hello!\", \"farewell\" : \"bye-bye!\", \"json_text\" : \"test!\" }");
|
||||
common::ObArenaAllocator allocator(ObModIds::TEST);
|
||||
|
||||
@ -685,6 +685,7 @@ TEST_F(TestJsonPath, test_member_node)
|
||||
TEST_F(TestJsonPath, test_ellipsis_node)
|
||||
{
|
||||
int ret = OB_SUCCESS;
|
||||
set_compat_mode(oceanbase::lib::Worker::CompatMode::MYSQL);
|
||||
ObArenaAllocator allocator(ObModIds::TEST);
|
||||
ObJsonPath test_path("$**[10]", &allocator);
|
||||
ret = test_path.parse_path();
|
||||
|
||||
@ -2234,6 +2234,7 @@ TEST_F(TestJsonTree, oracle_sub_type)
|
||||
|
||||
TEST_F(TestJsonTree, test_sort)
|
||||
{
|
||||
set_compat_mode(lib::Worker::CompatMode::MYSQL);
|
||||
// correct json text
|
||||
common::ObString json_text("{ \"a\" : \"value1\", \"a\" : \"value2\", \
|
||||
\"b\" : \"value3\", \"b\" : \"value4\" }");
|
||||
|
||||
Reference in New Issue
Block a user