Skip to content

Commit

Permalink
fixup! In the convenience methods for join, make column equality op…
Browse files Browse the repository at this point in the history
…tional
  • Loading branch information
e5l committed Jan 15, 2024
1 parent 57ed329 commit 08d0a35
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions exposed-core/src/main/kotlin/org/jetbrains/exposed/sql/Table.kt
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ abstract class ColumnSet : FieldSet {
/**
* Creates an inner join relation with [otherTable] using [onColumn] and [otherColumn] equality
* and/or [additionalConstraint] as the join condition.
*
* @throws IllegalStateException if the join cannot be performed. See the exception message for more details.
*/
fun <C1 : ColumnSet, C2 : ColumnSet> C1.innerJoin(
otherTable: C2,
Expand All @@ -151,6 +153,8 @@ fun <C1 : ColumnSet, C2 : ColumnSet> C1.innerJoin(
/**
* Creates a left outer join relation with [otherTable] using [onColumn] and [otherColumn] equality
* and/or [additionalConstraint] as the join condition.
*
* @throws IllegalStateException if the join cannot be performed. See the exception message for more details.
*/
fun <C1 : ColumnSet, C2 : ColumnSet> C1.leftJoin(
otherTable: C2,
Expand All @@ -162,6 +166,8 @@ fun <C1 : ColumnSet, C2 : ColumnSet> C1.leftJoin(
/**
* Creates a right outer join relation with [otherTable] using [onColumn] and [otherColumn] equality
* and/or [additionalConstraint] as the join condition.
*
* @throws IllegalStateException if the join cannot be performed. See the exception message for more details.
*/
fun <C1 : ColumnSet, C2 : ColumnSet> C1.rightJoin(
otherTable: C2,
Expand All @@ -173,6 +179,8 @@ fun <C1 : ColumnSet, C2 : ColumnSet> C1.rightJoin(
/**
* Creates a full outer join relation with [otherTable] using [onColumn] and [otherColumn] equality
* and/or [additionalConstraint] as the join condition.
*
* @throws IllegalStateException if the join cannot be performed. See the exception message for more details.
*/
fun <C1 : ColumnSet, C2 : ColumnSet> C1.fullJoin(
otherTable: C2,
Expand All @@ -184,6 +192,8 @@ fun <C1 : ColumnSet, C2 : ColumnSet> C1.fullJoin(
/**
* Creates a cross join relation with [otherTable] using [onColumn] and [otherColumn] equality
* and/or [additionalConstraint] as the join condition.
*
* @throws IllegalStateException if the join cannot be performed. See the exception message for more details.
*/
fun <C1 : ColumnSet, C2 : ColumnSet> C1.crossJoin(
otherTable: C2,
Expand Down

0 comments on commit 08d0a35

Please sign in to comment.