From 77654cb534de126471263f8876b6be6794da8506 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Tue, 5 Apr 2022 14:39:32 -0400 Subject: [PATCH] fix typo in lambda example we might have an actual customer so clean up shop Change-Id: I0b1e36ad78f364805a3a7bfd6fac953cf94b838f (cherry picked from commit 7935b76d9e5b5fd4e64b2c6c3473737186acf2db) --- doc/build/core/connections.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/build/core/connections.rst b/doc/build/core/connections.rst index 3c2875bb4c..c683c7ee9d 100644 --- a/doc/build/core/connections.rst +++ b/doc/build/core/connections.rst @@ -1593,9 +1593,9 @@ Basic guidelines include: def my_stmt(parameter, thing=False): stmt = lambda_stmt(lambda: select(table)) if thing: - stmt += s.where(table.c.x > parameter) + stmt += lambda s: s.where(table.c.x > parameter) else: - stmt += s.where(table.c.y == parameter) + stmt += lambda s: s.where(table.c.y == parameter) return stmt There are a variety of failures which can occur if the lambda does not -- 2.47.3