From kde-commits Mon Feb 29 23:21:26 2016 From: Jaroslaw Staniek Date: Mon, 29 Feb 2016 23:21:26 +0000 To: kde-commits Subject: [kdb] src: GIT_SILENT Fix docs of KDbQuerySchema::fieldsExpanded() (silent) Message-Id: X-MARC-Message: https://marc.info/?l=kde-commits&m=145678809729597 Git commit 78a4f316bcde38020ff1187d00991b59c33542ed by Jaroslaw Staniek. Committed on 29/02/2016 at 23:16. Pushed by staniek into branch 'master'. GIT_SILENT Fix docs of KDbQuerySchema::fieldsExpanded() (from calligra.git) M +3 -3 src/KDbQuerySchema.h http://commits.kde.org/kdb/78a4f316bcde38020ff1187d00991b59c33542ed diff --git a/src/KDbQuerySchema.h b/src/KDbQuerySchema.h index bac28a9..49465c7 100644 --- a/src/KDbQuerySchema.h +++ b/src/KDbQuerySchema.h @@ -558,9 +558,9 @@ public: = If @a options is WithInternalFieldsAndRecordId, one fake BigInteger column is appended to make space for Record ID co= lumn used - by KDbCursor implementations. For example, let persons be TABLE( surn= ame, city_id ), - let city_number reference cities.is in TABLE cities( id, name ) and l= et query q be defined - by "SELECT * FROM t" statement. If we want to display persons' city n= ames instead of city_id's. + by KDbCursor implementations. For example, let city_id in TABLE perso= ns(surname, city_id) + reference cities.id in TABLE cities(id, name) and let query q be defi= ned + by "SELECT * FROM persons" statement. We want to display persons' cit= y names instead of city_id's. To do this, cities.name has to be retrieved as well, so the following= statement should be used: "SELECT * FROM persons, cities.name LEFT OUTER JOIN cities ON persons= .city_id=3Dcities.id". Thus, calling fieldsExpanded(WithInternalFieldsAndRecordId) will retu= rn 4 elements instead of 2: