File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -16253,9 +16253,9 @@ impl<'a> Parser<'a> {
1625316253
1625416254 fn parse_parenthesized_identifiers(&mut self) -> Result<Vec<Ident>, ParserError> {
1625516255 self.expect_token(&Token::LParen)?;
16256- let partitions = self.parse_comma_separated (|p| p.parse_identifier())?;
16256+ let idents = self.parse_comma_separated0 (|p| p.parse_identifier(), Token::RParen )?;
1625716257 self.expect_token(&Token::RParen)?;
16258- Ok(partitions )
16258+ Ok(idents )
1625916259 }
1626016260
1626116261 fn parse_column_position(&mut self) -> Result<Option<MySQLColumnPosition>, ParserError> {
Original file line number Diff line number Diff line change @@ -224,6 +224,10 @@ fn parse_create_table() {
224224 clickhouse ( ) . verified_stmt (
225225 r#"CREATE TABLE "x" ("a" "int") ENGINE = MergeTree ORDER BY "x" AS SELECT * FROM "t" WHERE true"# ,
226226 ) ;
227+ clickhouse ( ) . one_statement_parses_to (
228+ "CREATE TABLE x (a int) ENGINE = MergeTree() ORDER BY a" ,
229+ "CREATE TABLE x (a INT) ENGINE = MergeTree ORDER BY a" ,
230+ ) ;
227231}
228232
229233#[ test]
You can’t perform that action at this time.
0 commit comments