File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -7341,7 +7341,7 @@ impl<'a> Parser<'a> {
7341
7341
pub fn parse_options(&mut self, keyword: Keyword) -> Result<Vec<SqlOption>, ParserError> {
7342
7342
if self.parse_keyword(keyword) {
7343
7343
self.expect_token(&Token::LParen)?;
7344
- let options = self.parse_comma_separated (Parser::parse_sql_option)?;
7344
+ let options = self.parse_comma_separated0 (Parser::parse_sql_option, Token::RParen )?;
7345
7345
self.expect_token(&Token::RParen)?;
7346
7346
Ok(options)
7347
7347
} else {
Original file line number Diff line number Diff line change @@ -473,6 +473,12 @@ fn parse_create_table_with_options() {
473
473
r#"description = "table option description")"#
474
474
) ;
475
475
bigquery ( ) . verified_stmt ( sql) ;
476
+
477
+ let sql = "CREATE TABLE foo (x INT64) OPTIONS()" ;
478
+ bigquery ( ) . verified_stmt ( sql) ;
479
+
480
+ let sql = "CREATE TABLE db.schema.test (x INT64 OPTIONS(description = 'An optional INTEGER field')) OPTIONS()" ;
481
+ bigquery ( ) . verified_stmt ( sql) ;
476
482
}
477
483
478
484
#[ test]
You can’t perform that action at this time.
0 commit comments