fix the bug of parsing insert overwrite

This commit is contained in:
leftgeek
2024-08-13 10:52:58 +00:00
committed by ob-robot
parent 1116be93e8
commit c53bcf5c28

View File

@ -9386,8 +9386,9 @@ insert_with_opt_hint opt_priority opt_ignore opt_into single_table_insert opt_on
} }
ParseNode *overwrite_node; ParseNode *overwrite_node;
malloc_terminal_node(overwrite_node, result->malloc_pool_, T_BOOL); malloc_terminal_node(overwrite_node, result->malloc_pool_, T_INT);
overwrite_node->value_ = 1; overwrite_node->value_ = 1;
overwrite_node->is_hidden_const_ = 1;
$5->children_[2] = NULL; /*duplicate key node is null*/ $5->children_[2] = NULL; /*duplicate key node is null*/
malloc_non_terminal_node($$, result->malloc_pool_, T_INSERT, 5, malloc_non_terminal_node($$, result->malloc_pool_, T_INSERT, 5,