From 63b73e32dc87381a53e2c5c1e4b819e2a7ba3472 Mon Sep 17 00:00:00 2001 From: Hristiyan Genchev <40357617+genchev99@users.noreply.github.com> Date: Mon, 11 Jul 2022 13:33:35 +0300 Subject: [PATCH] Update variable name to match CTE --- docs/peewee/querying.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/peewee/querying.rst b/docs/peewee/querying.rst index 425b22c68..06d2f9d8e 100644 --- a/docs/peewee/querying.rst +++ b/docs/peewee/querying.rst @@ -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 ^^^^^^^^^^^^^^