From: Gaƫtan de Menten Date: Mon, 15 Oct 2007 08:51:23 +0000 (+0000) Subject: fix typo in examples X-Git-Tag: rel_0_4_0~13 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dac7ab4a0f696d316a57f08aef324600053aee54;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git fix typo in examples --- 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)],