change compat_mode default from MYSQL to INVALID

This commit is contained in:
obdev
2023-12-08 07:47:33 +00:00
committed by ob-robot
parent 6a2fd09d6b
commit e52308603f
10 changed files with 10 additions and 2 deletions

View File

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

View File

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