diff options
Diffstat (limited to 'lib/statement.cpp')
| -rw-r--r-- | lib/statement.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
| diff --git a/lib/statement.cpp b/lib/statement.cpp index 6e9e920..eb734dd 100644 --- a/lib/statement.cpp +++ b/lib/statement.cpp | |||
| @@ -420,7 +420,7 @@ namespace verbly { | |||
| 420 | topTable_, | 420 | topTable_, |
| 421 | clause.getField().getColumn(), | 421 | clause.getField().getColumn(), |
| 422 | withInstName, | 422 | withInstName, |
| 423 | clause.getField().getColumn()); | 423 | clause.getField().getForeignColumn()); |
| 424 | 424 | ||
| 425 | // All CTEs have to be in the main statement, so integrate any | 425 | // All CTEs have to be in the main statement, so integrate any |
| 426 | // CTEs that our subquery uses. Also, retrieve the table mapping, | 426 | // CTEs that our subquery uses. Also, retrieve the table mapping, |
| @@ -450,7 +450,7 @@ namespace verbly { | |||
| 450 | topTable_, | 450 | topTable_, |
| 451 | clause.getField().getColumn(), | 451 | clause.getField().getColumn(), |
| 452 | std::move(joinTable), | 452 | std::move(joinTable), |
| 453 | clause.getField().getColumn()); | 453 | clause.getField().getForeignColumn()); |
| 454 | 454 | ||
| 455 | // Integrate the subquery's table mappings, joins, and CTEs into | 455 | // Integrate the subquery's table mappings, joins, and CTEs into |
| 456 | // this statement, and return the subquery condition as our | 456 | // this statement, and return the subquery condition as our |
