[FEAT MERGE]implement user-defined rewrite rules
This commit is contained in:
@ -61,11 +61,11 @@ TEST_F(TestSqlParameterization, parameterize_sql)
|
||||
ObString stmt = ObString::make_string("select * from t1 where c1 = 3 group by 2 order by 1");
|
||||
ObSEArray<const ObPCParam *, OB_PC_NOT_PARAM_COUNT> not_params;
|
||||
ObFastParserResult fp_result;
|
||||
FPContext fp_ctx(ObCharset::get_system_collation());
|
||||
fp_ctx.sql_mode_ = SMO_DEFAULT;
|
||||
if (OB_FAIL(ObSqlParameterization::fast_parser(allocator,
|
||||
SMO_DEFAULT,
|
||||
ObCharset::get_system_collation(),
|
||||
fp_ctx,
|
||||
stmt,
|
||||
false,
|
||||
fp_result))) {
|
||||
SQL_PC_LOG(WARN, "fail to fast_parser", K(stmt));
|
||||
}
|
||||
|
Reference in New Issue
Block a user