Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions src/parser/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1720,17 +1720,6 @@ impl<'a> Parser<'a> {
value: self.parse_introduced_string_expr()?.into(),
})
}
// string introducer https://dev.mysql.com/doc/refman/8.0/en/charset-introducer.html
Token::SingleQuotedString(_)
| Token::DoubleQuotedString(_)
| Token::HexStringLiteral(_)
if w.value.starts_with('_') =>
{
Ok(Expr::Prefixed {
prefix: w.to_ident(w_span),
value: self.parse_introduced_string_expr()?.into(),
})
}
// An unreserved word (likely an identifier) is followed by an arrow,
// which indicates a lambda function with a single, untyped parameter.
// For example: `a -> a * 2`.
Expand Down
1 change: 1 addition & 0 deletions tests/sqlparser_mysql.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3805,6 +3805,7 @@ fn parse_string_introducers() {
mysql().verified_stmt("SELECT _binary 'abc'");
mysql().one_statement_parses_to("SELECT _utf8'abc'", "SELECT _utf8 'abc'");
mysql().one_statement_parses_to("SELECT _utf8mb4'abc'", "SELECT _utf8mb4 'abc'");
mysql().one_statement_parses_to("SELECT _utf8mb4\"abc\"", "SELECT _utf8mb4 \"abc\"");
mysql().verified_stmt("SELECT _binary 'abc', _utf8mb4 'abc'");
}

Expand Down
Loading