diff options
| author | Gaëtan de Menten <gdementen@gmail.com> | 2007-10-15 08:51:23 +0000 |
|---|---|---|
| committer | Gaëtan de Menten <gdementen@gmail.com> | 2007-10-15 08:51:23 +0000 |
| commit | dac7ab4a0f696d316a57f08aef324600053aee54 (patch) | |
| tree | 45dda2a4b9c01f4257bf6849e9bab9bba393ad22 | |
| parent | f64768658d59711c7b5035ea431faf5b4fa678df (diff) | |
| download | sqlalchemy-dac7ab4a0f696d316a57f08aef324600053aee54.tar.gz | |
fix typo in examples
| -rw-r--r-- | doc/build/content/mappers.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/build/content/mappers.txt b/doc/build/content/mappers.txt index 1abe4814a..53dbaea2b 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)], |
