Skip to content

MySQL: Support SHOW FULL PROCESSLIST syntax#2292

Open
jstnd wants to merge 1 commit intoapache:mainfrom
jstnd:mysql-support-full-processlist
Open

MySQL: Support SHOW FULL PROCESSLIST syntax#2292
jstnd wants to merge 1 commit intoapache:mainfrom
jstnd:mysql-support-full-processlist

Conversation

@jstnd
Copy link
Copy Markdown

@jstnd jstnd commented Apr 1, 2026

Currently, parsing the syntax SHOW FULL PROCESSLIST with the MySQL dialect results in an error even though it's valid as seen in the documentation. This PR adds support for this syntax to the parser.

This is my first time contributing here, so please let me know if anything needs to be changed.

let ast = Parser::parse_sql(&MySqlDialect {}, "SHOW FULL PROCESSLIST");
println!("{:?}", ast); // Current: Err(ParserError("EXTENDED/FULL are not supported with this type of SHOW query"))

https://dev.mysql.com/doc/refman/8.4/en/show-processlist.html

} else if self.parse_keyword(Keyword::FUNCTIONS) {
Ok(self.parse_show_functions()?)
} else if self.parse_keyword(Keyword::PROCESSLIST)
&& dialect_of!(self is MySqlDialect | GenericDialect)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this gate necessary? We are OK with the parser being permissive and having all dialects accept this statement.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wasn't sure if we were fine with it being permissive so I added the gate matching some other branches here just in case. I made the changes to remove the dialect gate.

@jstnd jstnd force-pushed the mysql-support-full-processlist branch from f3c332f to 5a38c63 Compare April 9, 2026 23:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants