Skip to content

Commit f783593

Browse files
committed
Test Oracle edge case
1 parent c38ea0a commit f783593

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/test_executor.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -728,6 +728,12 @@ def test_scalar_functions(self):
728728
result = execute(f"SELECT {sql}")
729729
self.assertEqual(result.rows, [(expected,)])
730730

731+
result = execute(
732+
"WITH t AS (SELECT 'a' AS c1, 'b' AS c2) SELECT NVL(c1, c2) FROM t",
733+
dialect="oracle",
734+
)
735+
self.assertEqual(result.rows, [('a',)])
736+
731737
def test_case_sensitivity(self):
732738
result = execute("SELECT A AS A FROM X", tables={"x": [{"a": 1}]})
733739
self.assertEqual(result.columns, ("a",))

0 commit comments

Comments
 (0)