Skip to content

Commit edccf86

Browse files
committed
changed 'on true' to 'on 1=1'
1 parent 95e7a68 commit edccf86

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/test_base_sql/test_select_structure.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1326,13 +1326,15 @@ def test_lateral_join(self):
13261326
INNER JOIN LATERAL (SELECT *
13271327
FROM table2 b
13281328
WHERE a.x=b.x
1329-
LIMIT 1) b ON true
1329+
LIMIT 1) b ON 1=1
13301330
'''
13311331

13321332
expected_ast = Select(
13331333
targets=[Star()],
13341334
from_table=Join(
1335-
condition=Constant(True),
1335+
condition=BinaryOperation(op='=', args=[
1336+
Constant(1), Constant(1)
1337+
]),
13361338
join_type='INNER JOIN LATERAL',
13371339
left=Identifier('table1', alias=Identifier('a')),
13381340
right=Select(

0 commit comments

Comments
 (0)