[MXS-4632] Add Parser::relates_to_previous_query() Created: 2023-06-05  Updated: 2023-06-09  Resolved: 2023-06-07

Status: Closed
Project: MariaDB MaxScale
Component/s: QueryClassifier
Affects Version/s: None
Fix Version/s: 23.08.0

Type: Task Priority: Major
Reporter: Johan Wikman Assignee: Johan Wikman
Resolution: Fixed Votes: 0
Labels: None

Sprint: MXS-SPRINT-184

 Description   

The query classifier needs to know whether a particular statement relates to the previous query or not; e.g. if the function FOUND_ROWS() is used it does.

Currently it calls Parser::get_function_infos() and looks for that function, which is problematic as it implies that the Postgres parser would have to implement get_function_infos() as well. But more importantly, the generic query classifier cannot know what protocol specific functions or statements relate to the previous statement.

This, this functionality needs to be pushed down to the parser.


Generated at Thu Feb 08 04:30:02 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.