Minor: clarify the value of the special flag (#948)

This commit is contained in:
Andrew Lamb 2023-08-17 06:45:18 -04:00 committed by GitHub
parent 83e30677b0
commit a7d28582e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1242,7 +1242,7 @@ impl<'a> Parser<'a> {
expr: Box::new(expr),
substring_from: from_expr.map(Box::new),
substring_for: to_expr.map(Box::new),
special: !self.dialect.supports_substring_from_for_expr(),
special: false,
})
} else {
// PARSE SUBSTRING(EXPR, start, length)
@ -1261,7 +1261,7 @@ impl<'a> Parser<'a> {
expr: Box::new(expr),
substring_from: from_expr.map(Box::new),
substring_for: to_expr.map(Box::new),
special: !self.dialect.supports_substring_from_for_expr(),
special: true,
})
}
}