summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2022-04-05 14:39:32 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2022-04-05 14:39:32 -0400
commit7935b76d9e5b5fd4e64b2c6c3473737186acf2db (patch)
treed39a14dac7fee6754903713cfbcd5b41b7f1c714
parent3b4d62f4f72e8dfad7f38db192a6a90a8551608c (diff)
downloadsqlalchemy-7935b76d9e5b5fd4e64b2c6c3473737186acf2db.tar.gz
fix typo in lambda example
we might have an actual customer so clean up shop Change-Id: I0b1e36ad78f364805a3a7bfd6fac953cf94b838f
-rw-r--r--doc/build/core/connections.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/build/core/connections.rst b/doc/build/core/connections.rst
index 11d35237a..a3d85896d 100644
--- a/doc/build/core/connections.rst
+++ b/doc/build/core/connections.rst
@@ -1409,9 +1409,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