change compat_mode default from MYSQL to INVALID

This commit is contained in:
obdev
2024-02-07 13:51:05 +00:00
committed by ob-robot
parent af06b2b47b
commit cdbcd01b27
10 changed files with 10 additions and 2 deletions

View File

@ -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;

View File

@ -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);

View File

@ -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();

View File

@ -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\" }");