Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

valgrind失败用例main.func_misc修改 #188

Merged
merged 1 commit into from
Oct 19, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions sql/item.h
Original file line number Diff line number Diff line change
Expand Up @@ -3329,6 +3329,8 @@ class Item_name_const final : public Item {
}

Item *pq_clone(THD *thd, SELECT_LEX *select) override;
bool pq_copy_from(THD *thd, SELECT_LEX *select, Item *item) override;

protected:
type_conversion_status save_in_field_inner(Field *field,
bool no_conversions) override {
Expand Down
7 changes: 7 additions & 0 deletions sql/pq_clone_item.cc
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,13 @@ PQ_CLONE_DEF(Item_name_const) {
}
PQ_CLONE_RETURN

PQ_COPY_FROM_DEF(Item_name_const, Item) {
if (orig_item != nullptr) {
valid_args = orig_item->valid_args;
}
}
PQ_COPY_FROM_RETURN

/* Item_result_field start */
/* Item_func start */
PQ_COPY_FROM_DEF(Item_func, Item_result_field) {
Expand Down