[Akonadi] [Bug 391783] Akonadi is causing thousands of QSqlDatabase warnings

2018-03-15 Thread Albert Astals Cid
https://bugs.kde.org/show_bug.cgi?id=391783

Albert Astals Cid  changed:

   What|Removed |Added

  Latest Commit||https://commits.kde.org/ako
   ||nadi/02445c3022c96c4cf87340
   ||34ec49c0cb9b05d1ea
 Status|CONFIRMED   |RESOLVED
 Resolution|--- |FIXED

--- Comment #5 from Albert Astals Cid  ---
Git commit 02445c3022c96c4cf8734034ec49c0cb9b05d1ea by Albert Astals Cid, on
behalf of Allan Sandfeld Jensen.
Committed on 15/03/2018 at 16:39.
Pushed by aacid into branch 'master'.

Fix QSqlQuery warnings

Summary:
A default constructed QSqlQuery is not a passive null-value but a
query prepared for the default database which may not be allowed
in the current thread. Instead try connecting to the akonadi default
database.

Reviewers: mlaurent, dvratil

Reviewed By: dvratil

Subscribers: dvratil, ngraham, #kde_pim

Tags: #kde_pim

Differential Revision: https://phabricator.kde.org/D11273

M  +4-4src/server/handler/fetchhelper.cpp
M  +2-2src/server/handler/list.cpp
M  +2-1src/server/storage/querybuilder.cpp

https://commits.kde.org/akonadi/02445c3022c96c4cf8734034ec49c0cb9b05d1ea

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Akonadi] [Bug 391783] Akonadi is causing thousands of QSqlDatabase warnings

2018-03-13 Thread Allan Sandfeld
https://bugs.kde.org/show_bug.cgi?id=391783

Allan Sandfeld  changed:

   What|Removed |Added

 Ever confirmed|0   |1
 Status|UNCONFIRMED |CONFIRMED

--- Comment #4 from Allan Sandfeld  ---
The change in Qt that triggers this is
https://codereview.qt-project.org/#/c/213515/

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Akonadi] [Bug 391783] Akonadi is causing thousands of QSqlDatabase warnings

2018-03-12 Thread Allan Sandfeld
https://bugs.kde.org/show_bug.cgi?id=391783

--- Comment #3 from Allan Sandfeld  ---
I wrote this change that seems to stop most of them:
https://phabricator.kde.org/D11273

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Akonadi] [Bug 391783] Akonadi is causing thousands of QSqlDatabase warnings

2018-03-12 Thread Allan Sandfeld
https://bugs.kde.org/show_bug.cgi?id=391783

--- Comment #2 from Allan Sandfeld  ---
Yes upon further investigation this mainly seems to be trigger by the use of
default constructed QSqlQuery as a non-initialized null value, but that is not
how Qt treats them, and they will try to connect to the default database and
prepare to execute commands there.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Akonadi] [Bug 391783] Akonadi is causing thousands of QSqlDatabase warnings

2018-03-12 Thread Allan Sandfeld
https://bugs.kde.org/show_bug.cgi?id=391783

Allan Sandfeld  changed:

   What|Removed |Added

Summary|Akonadi is using|Akonadi is causing
   |QSqlDatabse entirely wrong  |thousands of QSqlDatabase
   ||warnings

-- 
You are receiving this mail because:
You are the assignee for the bug.