change compat_mode default from MYSQL to INVALID
This commit is contained in:
		| @ -96,6 +96,7 @@ void TestRawExprCanonicalizer::canon(const char* expr, const char *&canon_expr) | ||||
|  | ||||
| TEST_F(TestRawExprCanonicalizer, basic_test) | ||||
| { | ||||
|   set_compat_mode(Worker::CompatMode::MYSQL); | ||||
|   std::ifstream if_tests("./expr/test_raw_expr_canonicalizer.test"); | ||||
|   ASSERT_TRUE(if_tests.is_open()); | ||||
|   std::string line; | ||||
|  | ||||
| @ -95,6 +95,7 @@ void TestRawExprResolver::resolve(const char* expr, const char *&json_expr) | ||||
|  | ||||
| TEST_F(TestRawExprResolver, all) | ||||
| { | ||||
|   set_compat_mode(Worker::CompatMode::MYSQL); | ||||
|   static const char* test_file = "./expr/test_raw_expr_resolver.test"; | ||||
|   static const char* tmp_file = "./expr/test_raw_expr_resolver.tmp"; | ||||
|   static const char* result_file = "./expr/test_raw_expr_resolver.result"; | ||||
|  | ||||
| @ -704,6 +704,7 @@ void ObQueryRangeTest::get_query_range_collation(const char *sql_expr, const cha | ||||
|  | ||||
| TEST_F(ObQueryRangeTest, collation_test) | ||||
| { | ||||
|   set_compat_mode(lib::Worker::CompatMode::MYSQL); | ||||
|   static const char* test_file = "./test_query_range_collation.test"; | ||||
|   static const char* tmp_file = "./test_query_range_collation.tmp"; | ||||
|   static const char* result_file = "./test_query_range_collation.result"; | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 obdev
					obdev