diff options
-rw-r--r-- | lib/statement.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/statement.cpp b/lib/statement.cpp index 1512aa5..562eef2 100644 --- a/lib/statement.cpp +++ b/lib/statement.cpp | |||
@@ -318,7 +318,7 @@ namespace verbly { | |||
318 | // will return zero results. Instead, we create a non-recursive | 318 | // will return zero results. Instead, we create a non-recursive |
319 | // CTE that represents the subquery, then LEFT JOIN against it and | 319 | // CTE that represents the subquery, then LEFT JOIN against it and |
320 | // condition on the join column being NULL as before. | 320 | // condition on the join column being NULL as before. |
321 | std::string withName = instantiateWith(clause.getField().getTable()); | 321 | std::string withName = instantiateWith(joinTableName); |
322 | std::string withInstName = instantiateTable(withName); | 322 | std::string withInstName = instantiateTable(withName); |
323 | 323 | ||
324 | // LEFT JOIN against the CTE. | 324 | // LEFT JOIN against the CTE. |