[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kdb] src: GIT_SILENT Fix docs of KDbQuerySchema::fieldsExpanded() (silent)
From: Jaroslaw Staniek <staniek () kde ! org>
Date: 2016-02-29 23:21:26
Message-ID: E1aaX82-0005Dj-O9 () scm ! kde ! org
[Download RAW message or body]
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 column used
- by KDbCursor implementations. For example, let persons be TABLE( surname, city_id ),
- let city_number reference cities.is in TABLE cities( id, name ) and let query q be defined
- by "SELECT * FROM t" statement. If we want to display persons' city names instead of city_id's.
+ by KDbCursor implementations. For example, let city_id in TABLE persons(surname, city_id)
+ reference cities.id in TABLE cities(id, name) and let query q be defined
+ by "SELECT * FROM persons" statement. We want to display persons' city 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=cities.id".
Thus, calling fieldsExpanded(WithInternalFieldsAndRecordId) will return 4 elements instead of 2:
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic