Adding upstream version 12.2.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
82a8846a46
commit
70d5d3451a
100 changed files with 35022 additions and 30936 deletions
|
@ -5,6 +5,8 @@ class TestOracle(Validator):
|
|||
dialect = "oracle"
|
||||
|
||||
def test_oracle(self):
|
||||
self.validate_identity("SELECT * FROM table_name@dblink_name.database_link_domain")
|
||||
self.validate_identity("SELECT * FROM table_name SAMPLE (25) s")
|
||||
self.validate_identity("SELECT * FROM V$SESSION")
|
||||
self.validate_identity(
|
||||
"SELECT MIN(column_name) KEEP (DENSE_RANK FIRST ORDER BY column_name DESC) FROM table_name"
|
||||
|
@ -17,7 +19,6 @@ class TestOracle(Validator):
|
|||
"": "IFNULL(NULL, 1)",
|
||||
},
|
||||
)
|
||||
|
||||
self.validate_all(
|
||||
"DATE '2022-01-01'",
|
||||
write={
|
||||
|
@ -28,6 +29,21 @@ class TestOracle(Validator):
|
|||
},
|
||||
)
|
||||
|
||||
self.validate_all(
|
||||
"x::binary_double",
|
||||
write={
|
||||
"oracle": "CAST(x AS DOUBLE PRECISION)",
|
||||
"": "CAST(x AS DOUBLE)",
|
||||
},
|
||||
)
|
||||
self.validate_all(
|
||||
"x::binary_float",
|
||||
write={
|
||||
"oracle": "CAST(x AS FLOAT)",
|
||||
"": "CAST(x AS FLOAT)",
|
||||
},
|
||||
)
|
||||
|
||||
def test_join_marker(self):
|
||||
self.validate_identity("SELECT e1.x, e2.x FROM e e1, e e2 WHERE e1.y (+) = e2.y")
|
||||
self.validate_identity("SELECT e1.x, e2.x FROM e e1, e e2 WHERE e1.y = e2.y (+)")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue