Merging upstream version 18.7.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
77523b6777
commit
d1b976f442
96 changed files with 59037 additions and 52828 deletions
|
@ -498,6 +498,21 @@ class TestMySQL(Validator):
|
|||
self.validate_identity("TIME_STR_TO_UNIX(x)", "UNIX_TIMESTAMP(x)")
|
||||
|
||||
def test_mysql(self):
|
||||
self.validate_all(
|
||||
"a XOR b",
|
||||
read={
|
||||
"mysql": "a XOR b",
|
||||
"snowflake": "BOOLXOR(a, b)",
|
||||
},
|
||||
write={
|
||||
"duckdb": "(a AND (NOT b)) OR ((NOT a) AND b)",
|
||||
"mysql": "a XOR b",
|
||||
"postgres": "(a AND (NOT b)) OR ((NOT a) AND b)",
|
||||
"snowflake": "BOOLXOR(a, b)",
|
||||
"trino": "(a AND (NOT b)) OR ((NOT a) AND b)",
|
||||
},
|
||||
)
|
||||
|
||||
self.validate_all(
|
||||
"SELECT * FROM test LIMIT 0 + 1, 0 + 1",
|
||||
write={
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue