mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-09-26 15:39:12 +00:00
Improve docs for KILL statement (#481)
This commit is contained in:
parent
f5980cd30f
commit
a9d7f7af1f
2 changed files with 4 additions and 2 deletions
|
@ -1005,6 +1005,8 @@ pub enum Statement {
|
||||||
data_types: Vec<DataType>,
|
data_types: Vec<DataType>,
|
||||||
statement: Box<Statement>,
|
statement: Box<Statement>,
|
||||||
},
|
},
|
||||||
|
/// KILL [CONNECTION | QUERY | MUTATION]
|
||||||
|
///
|
||||||
/// See <https://clickhouse.com/docs/ru/sql-reference/statements/kill/>
|
/// See <https://clickhouse.com/docs/ru/sql-reference/statements/kill/>
|
||||||
/// See <https://dev.mysql.com/doc/refman/8.0/en/kill.html>
|
/// See <https://dev.mysql.com/doc/refman/8.0/en/kill.html>
|
||||||
Kill {
|
Kill {
|
||||||
|
|
|
@ -2879,7 +2879,7 @@ impl<'a> Parser<'a> {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// KILL [CONNECTION | QUERY] processlist_id
|
// KILL [CONNECTION | QUERY | MUTATION] processlist_id
|
||||||
pub fn parse_kill(&mut self) -> Result<Statement, ParserError> {
|
pub fn parse_kill(&mut self) -> Result<Statement, ParserError> {
|
||||||
let modifier_keyword =
|
let modifier_keyword =
|
||||||
self.parse_one_of_keywords(&[Keyword::CONNECTION, Keyword::QUERY, Keyword::MUTATION]);
|
self.parse_one_of_keywords(&[Keyword::CONNECTION, Keyword::QUERY, Keyword::MUTATION]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue