Support mysql RLIKE and REGEXP binary operators (#1017)

This commit is contained in:
Ophir LOJKINE 2023-10-20 22:13:22 +02:00 committed by GitHub
parent 88510f6625
commit c03586b727
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 53 additions and 3 deletions

View file

@ -111,7 +111,7 @@ impl TestedDialects {
/// 2. re-serializing the result of parsing `sql` produces the same
/// `canonical` sql string
pub fn one_statement_parses_to(&self, sql: &str, canonical: &str) -> Statement {
let mut statements = self.parse_sql_statements(sql).unwrap();
let mut statements = self.parse_sql_statements(sql).expect(sql);
assert_eq!(statements.len(), 1);
if !canonical.is_empty() && sql != canonical {