fix invalid str off in ps mode
This commit is contained in:
@ -2669,6 +2669,7 @@ MOD '(' expr ',' expr ')'
|
||||
malloc_terminal_node(param_node, result->malloc_pool_, T_SFU_DOUBLE);
|
||||
int64_t len = strlen("2.718281828459045");
|
||||
param_node->str_value_ = parse_strndup("2.718281828459045", len, result->malloc_pool_);
|
||||
param_node->is_hidden_const_ = 1;
|
||||
if (OB_UNLIKELY(NULL == param_node->str_value_)) {
|
||||
yyerror(NULL, result, "No more space for mallocing string\n");
|
||||
YYABORT_NO_MEMORY;
|
||||
@ -2686,6 +2687,7 @@ MOD '(' expr ',' expr ')'
|
||||
malloc_terminal_node(param_node, result->malloc_pool_, T_SFU_DOUBLE);
|
||||
int64_t len = strlen("2.718281828459045");
|
||||
param_node->str_value_ = parse_strndup("2.718281828459045", len, result->malloc_pool_);
|
||||
param_node->is_hidden_const_ = 1;
|
||||
if (OB_UNLIKELY(NULL == param_node->str_value_)) {
|
||||
yyerror(NULL, result, "No more space for mallocing string\n");
|
||||
YYABORT_NO_MEMORY;
|
||||
|
||||
Reference in New Issue
Block a user