diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2016-02-15 13:17:21 +0100 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2016-02-17 16:17:46 +0000 |
commit | 88e043a8bd1b49949777c90c75ff36314af7fe0f (patch) | |
tree | 4d08b880952a5f2ee9fc2e73b2d7401a8b5fb586 /src/sql/doc | |
parent | de8229f37054b195bab4ca8e8a994832a60ae3a0 (diff) |
QOCIDriver: optimize string handling in tables()
- Instead of a QStringList, use a const char 2D array
to hold the system user names. Don't remove the
current user from that list, skip it duing processing.
- Extract Method make_where_clause, optimize it and
cache its result. Instead of creating a QStringList
and join()ing it at the end (sometimes twice), append
to the result QString directly. Reserve the max size
of the result string, which is statically known.
- Keep the query select statements in QLatin1String.
They are only used in QStringBuilder expressions.
Change-Id: I0593d2812da671a541d49a6136f3ff3d784c63d5
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Diffstat (limited to 'src/sql/doc')
0 files changed, 0 insertions, 0 deletions