File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
main/kotlin/com/alecstrong/sql/psi/core/psi/mixins
testFixtures/resources/fixtures/multiple-inner-joins Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,7 @@ internal abstract class JoinClauseMixin(
7575 rightColumns = rightColumns.map { it.copy(nullable = true ) }
7676 rightSynthesizedColumns = rightSynthesizedColumns.map { it.copy(nullable = true ) }
7777
78+ queryAvailable - = rightQuery
7879 queryAvailable + = QueryResult (
7980 table = rightQuery.first().table,
8081 columns = rightColumns,
@@ -103,7 +104,7 @@ internal abstract class JoinClauseMixin(
103104 )
104105 }
105106
106- return @ModifiableFileLazy queryAvailable.associateBy { it.table }.values
107+ return @ModifiableFileLazy queryAvailable
107108 }
108109
109110 private fun leftJoinOperator (operator : SqlJoinOperator ): Boolean {
Original file line number Diff line number Diff line change 1+ CREATE TABLE testTable(
2+ testColumn INTEGER
3+ ) ;
4+
5+ SELECT test_column IS NOT NULL
6+ FROM (
7+ SELECT testColumn AS test_column
8+ FROM testTable
9+ )
10+ LEFT JOIN (SELECT 1 ) ;
You can’t perform that action at this time.
0 commit comments