Skip to content

Conversation

@bsrikanth-mariadb
Copy link
Contributor

ft_handler isn't getting initialized for subqueries inside explain delete/update queries. However, ft_handler is accessed inside ha_ft_read(), and is the reason for NULL pointer exception.
However, that is not the case with non-explain queries.

ft_handler initialization is done in the optimizer phase, that too selectively, when the flag SELECT_DESCRIBE is not set.

In this PR, initialization of ft_handler is moved to the exexution phase, and is done always.

ft_handler isn't getting initialized for subqueries inside explain
delete/update queries. However, ft_handler is accessed inside ha_ft_read(),
and is the reason for NULL pointer exception.
However, that is not the case with non-explain queries.

ft_handler initialization is done in the optimizer phase, that too
selectively, when the flag SELECT_DESCRIBE is not set.

In this PR, initialization of ft_handler is moved to the exexution phase,
and is done always.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants