Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
irenjj committed May 15, 2024
1 parent 628a33d commit f06d64a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sql/src/parsers/copy_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ impl<'a> ParserContext<'a> {

let req = if self.parser.parse_keyword(Keyword::TO) {
let (with, connection, location, limit) = self.parse_copy_parameters()?;
if let Some(num) = limit {
if limit.is_some() {
return error::InvalidSqlSnafu {
msg: "limit xxx is not supported",
}
Expand All @@ -76,7 +76,7 @@ impl<'a> ParserContext<'a> {
.expect_keyword(Keyword::FROM)
.context(error::SyntaxSnafu)?;
let (with, connection, location, limit) = self.parse_copy_parameters()?;
if let Some(num) = limit {
if limit.is_some() {
return error::InvalidSqlSnafu {
msg: "limit xxx is not supported",
}
Expand Down

0 comments on commit f06d64a

Please sign in to comment.