diff options
author | Robert Szefner <r.szefner@hydro-partner.pl> | 2019-12-07 00:05:47 +0100 |
---|---|---|
committer | Robert Szefner <r.szefner@hydro-partner.pl> | 2019-12-10 21:21:34 +0100 |
commit | 6ffedc07a77a8e3d46851b74cf9456d5abf6f612 (patch) | |
tree | 6a77d422e938cb0bcd7ad42808b6a382f0715d78 /src/testlib/qtest.h | |
parent | 382f1a221b353892844dc7b1495741c4669955e7 (diff) |
PSQL: Optimize QPSQLResult::data() function for date and time types
Minor performance optimalizations:
- No need to check if the date and time are correct because the QDate,
QTime and QDateTime parsing functions already perform these checks
- No need to add minute part to the UTC offset before parsing the date,
because the QDateTime class can parse time zone offset both in form
±hh:mm and ±hh
Change-Id: Id74b7ae075135c5c8cf420247c49b5f12fe88899
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/testlib/qtest.h')
0 files changed, 0 insertions, 0 deletions