Skip to content

Commit

Permalink
Merge pull request #2590 from genchev99/patch-1
Browse files Browse the repository at this point in the history
Update variable name to match CTE
  • Loading branch information
coleifer committed Jul 11, 2022
2 parents 4741e9f + 63b73e3 commit 657315d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/peewee/querying.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1910,7 +1910,7 @@ With Peewee, we would write:
fn.SUM(Order.amount).alias('product_sales'))
.where(Order.region.in_(top_regions.select(top_regions.c.region)))
.group_by(Order.region, Order.product)
.with_cte(regional_sales, top_regions))
.with_cte(reg_sales, top_regions))
Recursive CTEs
^^^^^^^^^^^^^^
Expand Down

0 comments on commit 657315d

Please sign in to comment.