[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-pim
Subject: D11273: Fix QSqlQuery warnings
From: Allan Sandfeld Jensen <noreply () phabricator ! kde ! org>
Date: 2018-03-12 22:44:59
Message-ID: 20180312224459.1.778F69A22FEEC881 () phabricator ! kde ! org
[Download RAW message or body]
carewolf created this revision.
carewolf added a reviewer: mlaurent.
Restricted Application added a project: KDE PIM.
Restricted Application added a subscriber: KDE PIM.
carewolf requested review of this revision.
REVISION 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.
BUG: 391783
REPOSITORY
R165 Akonadi
BRANCH
Applications/17.12
REVISION DETAIL
https://phabricator.kde.org/D11273
AFFECTED FILES
src/server/handler/fetchhelper.cpp
src/server/handler/list.cpp
src/server/storage/querybuilder.cpp
To: carewolf, mlaurent
Cc: #kde_pim, dvasin, winterz, vkrause, mlaurent, knauss, dvratil
[Attachment #3 (unknown)]
<table><tr><td style="">carewolf created this revision.<br />carewolf added a \
reviewer: mlaurent.<br />Restricted Application added a project: KDE PIM.<br \
/>Restricted Application added a subscriber: KDE PIM.<br />carewolf requested review \
of this revision. </td><a style="text-decoration: none; padding: 4px 8px; margin: 0 \
8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; \
background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); \
display: inline-block; border: 1px solid rgba(71,87,120,.2);" \
href="https://phabricator.kde.org/D11273">View Revision</a></tr></table><br \
/><div><strong>REVISION SUMMARY</strong><div><p>A default constructed QSqlQuery is \
not a passive null-value but a<br /> query prepared for the default database which \
may not be allowed<br /> in the current thread. Instead try connecting to the akonadi \
default<br /> database.</p>
<p>BUG: 391783</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R165 \
Akonadi </div></div></div><br \
/><div><strong>BRANCH</strong><div><div>Applications/17.12</div></div></div><br \
/><div><strong>REVISION DETAIL</strong><div><a \
href="https://phabricator.kde.org/D11273">https://phabricator.kde.org/D11273</a></div></div><br \
/><div><strong>AFFECTED FILES</strong><div><div>src/server/handler/fetchhelper.cpp<br \
/> src/server/handler/list.cpp<br />
src/server/storage/querybuilder.cpp</div></div></div><br /><div><strong>To: \
</strong>carewolf, mlaurent<br /><strong>Cc: </strong>KDE PIM, dvasin, winterz, \
vkrause, mlaurent, knauss, dvratil<br /></div>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic