-
-
Notifications
You must be signed in to change notification settings - Fork 141
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
bug: mysqld crash with having clause #1630
Comments
Maybe assertion failed in debug mode. |
|
Crashed for first time, if reconnect to mysqld, the query will not crash. |
the statement of |
ping @davidshiz Please check it again in latest code,if crashed again? |
Item_field::cleanup in mysql 8.0 void Item_field::cleanup() {
DBUG_TRACE;
if (!fixed) return;
Item_ident::cleanup();
/*
When TABLE is detached from TABLE_LIST, field pointers are invalid,
unless field objects are created as part of statement (placeholder tables).
Also invalidate the original field name, since it is usually determined
from the field name in the Field object.
*/
if (table_ref != nullptr && !table_ref->is_view_or_derived() &&
!table_ref->is_recursive_reference()) {
field = nullptr;
m_orig_field_name = nullptr;
}
// Restore result field back to the initial value
result_field = field;
/*
When table_ref is NULL, table_name must be reassigned together with
table pointer.
*/
if (table_ref == nullptr) table_name = nullptr;
// Reset field before next optimization (multiple equality analysis)
item_equal = nullptr;
item_equal_all_join_nests = nullptr;
null_value = false;
} cleanup() in mysql 5.7 void Item_field::cleanup()
{
DBUG_ENTER("Item_field::cleanup");
Item_ident::cleanup();
/*
Even if this object was created by direct link to field in setup_wild()
it will be linked correctly next time by name of field and table alias.
I.e. we can drop 'field'.
*/
table_ref= NULL;
field= result_field= 0;
item_equal= NULL;
null_value= FALSE;
DBUG_VOID_RETURN;
} the cleanup function are diffierent in 8.0 and 5.7, and the crash happen in cleanup_after_query() |
crash happen in sql_parse.cc |
In the latest version, it works. |
Have you read the Contributing Guidelines on issues?
Please confirm if bug report does NOT exists already ?
Describe the problem
refer to stonedb-5.7-dev/mysql-test/suite/tianmu/t/issue415.test
Expected behavior
No response
How To Reproduce
No response
Environment
Are you interested in submitting a PR to solve the problem?
The text was updated successfully, but these errors were encountered: