Skip to content

Commit 190b44a

Browse files
author
aleksei.p
committed
update
1 parent 3254953 commit 190b44a

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/parser/mod.rs

+1-8
Original file line numberDiff line numberDiff line change
@@ -7078,14 +7078,7 @@ impl<'a> Parser<'a> {
70787078
} else if self.parse_keywords(&[Keyword::NOT, Keyword::NULL]) {
70797079
Ok(Some(ColumnOption::NotNull))
70807080
} else if self.parse_keywords(&[Keyword::COMMENT]) {
7081-
let next_token = self.next_token();
7082-
match next_token.token {
7083-
Token::SingleQuotedString(value, ..) => Ok(Some(ColumnOption::Comment(value))),
7084-
Token::DollarQuotedString(value, ..) => {
7085-
Ok(Some(ColumnOption::Comment(value.value)))
7086-
}
7087-
_ => self.expected("string", next_token),
7088-
}
7081+
Ok(Some(ColumnOption::Comment(self.parse_comment_value()?)))
70897082
} else if self.parse_keyword(Keyword::NULL) {
70907083
Ok(Some(ColumnOption::Null))
70917084
} else if self.parse_keyword(Keyword::DEFAULT) {

0 commit comments

Comments
 (0)