Improve docs for KILL statement (#481)

This commit is contained in:
Andrew Lamb 2022-05-02 17:49:06 -04:00 committed by GitHub
parent f5980cd30f
commit a9d7f7af1f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -1005,6 +1005,8 @@ pub enum Statement {
data_types: Vec<DataType>,
statement: Box<Statement>,
},
/// KILL [CONNECTION | QUERY | MUTATION]
///
/// See <https://clickhouse.com/docs/ru/sql-reference/statements/kill/>
/// See <https://dev.mysql.com/doc/refman/8.0/en/kill.html>
Kill {
@ -2464,7 +2466,7 @@ impl fmt::Display for CopyLegacyCsvOption {
}
}
///
///
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
pub enum MergeClause {

View file

@ -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> {
let modifier_keyword =
self.parse_one_of_keywords(&[Keyword::CONNECTION, Keyword::QUERY, Keyword::MUTATION]);