1
0
Fork 0

Merging upstream version 26.1.3.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-13 21:59:50 +01:00
parent 829d661a08
commit c8d4d2df63
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
119 changed files with 71635 additions and 68059 deletions

View file

@ -632,6 +632,12 @@ class TestExpressions(unittest.TestCase):
self.assertTrue(all(isinstance(e, exp.Expression) for e in expression.walk()))
self.assertTrue(all(isinstance(e, exp.Expression) for e in expression.walk(bfs=False)))
def test_str_position_order(self):
str_position_exp = parse_one("STR_POSITION('mytest', 'test')")
self.assertIsInstance(str_position_exp, exp.StrPosition)
self.assertEqual(str_position_exp.args.get("this").this, "mytest")
self.assertEqual(str_position_exp.args.get("substr").this, "test")
def test_functions(self):
self.assertIsInstance(parse_one("x LIKE ANY (y)"), exp.Like)
self.assertIsInstance(parse_one("x ILIKE ANY (y)"), exp.ILike)