From dac7ab4a0f696d316a57f08aef324600053aee54 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ga=C3=ABtan=20de=20Menten?= Date: Mon, 15 Oct 2007 08:51:23 +0000 Subject: [PATCH] fix typo in examples --- doc/build/content/mappers.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/build/content/mappers.txt b/doc/build/content/mappers.txt index 1abe4814ad..53dbaea2b4 100644 --- a/doc/build/content/mappers.txt +++ b/doc/build/content/mappers.txt @@ -122,7 +122,7 @@ And an entire "deferred group", i.e. which uses the `group` keyword argument to To add a SQL clause composed of local or external columns as a read-only, mapped column attribute, use the `column_property()` function. Any scalar-returning `ClauseElement` may be used, as long as it has a `name` attribute; usually, you'll want to call `label()` to give it a specific name: {python} - mapper(User, users, properties={ + mapper(User, users_table, properties={ 'fullname' : column_property( (users_table.c.firstname + " " + users_table.c.lastname).label('fullname') ) @@ -131,7 +131,7 @@ To add a SQL clause composed of local or external columns as a read-only, mapped Correlated subqueries may be used as well: {python} - mapper(User, users, properties={ + mapper(User, users_table, properties={ 'address_count' : column_property( select( [func.count(addresses_table.c.address_id)], -- 2.47.3