1
0
Fork 0

Adding upstream version 18.7.0.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-13 21:03:05 +01:00
parent c4fc25c23b
commit be16920347
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
96 changed files with 59037 additions and 52828 deletions

View file

@ -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={