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> {
16253
16253
16254
16254
fn parse_parenthesized_identifiers(&mut self) -> Result<Vec<Ident>, ParserError> {
16255
16255
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 )?;
16257
16257
self.expect_token(&Token::RParen)?;
16258
- Ok(partitions )
16258
+ Ok(idents )
16259
16259
}
16260
16260
16261
16261
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() {
224
224
clickhouse ( ) . verified_stmt (
225
225
r#"CREATE TABLE "x" ("a" "int") ENGINE = MergeTree ORDER BY "x" AS SELECT * FROM "t" WHERE true"# ,
226
226
) ;
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
+ ) ;
227
231
}
228
232
229
233
#[ test]
You can’t perform that action at this time.
0 commit comments